• getFileInfo path (option|all)
Given a file or folder path, return the information corresponding to the
option argument. Available options are:
- alias: is the object an alias file
- bundle: a boolean indicating if the file is a bundle
- busy: a boolean indicating if the file is busy
- container: is the object a container
- created: the creation date
- creator: the HFS creator code
- datalen: the length of the data fork
- extHidden: a boolean indicating if the file's extension is hidden
- group: the group name
- hidden: a boolean indicating if the file is invisible
- locked: a boolean indicating if the file is locked
- modified: the modification date
- owner: the owner name
- regular: is the object a regular file, as opposed to a directory or a symbolic link
- symlink: is the object a symbolic link
- type: the HFS type code
- volume: is the object a volume
If the specified argument is all, the command returns a dictionary
of key/value pairs for all the possible options. Otherwise, it returns the
value corresponding to the specified option.
Note that some options can also be accessed through Tcl commands
such as [file attributes],
[file mtime], etc. This command
does not resolve aliases or symlinks.