Handy file info function
| getFileInfo |
public struct getFileInfo ( optional string file ) Returns info from a file / directory. Uses java.io.File to access file. Returns a structure keyed thus: | exists | Whether the file exists | | name | name of file | | path | The path to the file | | separator | The paths eparator of the file | | size | The size of the file | | lastModified | Timestamp of file | | file | Whether it's a file (as opposed to a directory) | | directory | Whether it's a directory | | read | Whether the file is readable | | write | Whether the file is writable | | hidden | Whether the file has the 'hidden' attribute set | | URI | A URI representation of the file | | URL | A URL representation of the file | | hashCode | hashCode of file, It is safe to call this method whether or not the specified file is known to exist. | | Output: | enabled | | Parameters: | file: string, optional, file - File to get info for. Should be a complete file-system path, eg: c:\temp\myFile.txt | AC |
Comments
There are no comments for this page as yet.
Add a comment