t = GetFileAttributes(f$[, adapter$])
Starting with Hollywood 6.0
GetFileAttributes() accepts an optional
argument which allows you to specify one or more file adapters that should be asked
to open the specified file. See Loaders and adapters for details.
On return, the table will have the following fields initialized:
f$is a file or
f$is a directory.
f$is a file. In that case, this field will receive the size of the file in bytes.
Trueif the file you passed to this function is a virtual file, i.e. a file linked to your applet/executable or a file created using DefineVirtualFile(). (V5.2)
If you want to query the attributes of a file that you have opened using OpenFile(), use FileAttributes() instead. See FileAttributes for details.
t = GetFileAttributes("test.txt") Print(t.time) If t.flags & #FILEATTR_READ_USR Print("#FILEATTR_READ_USR is set.") Else Print("#FILEATTR_READ_USR is not set.") EndIfThe code above examines the file "test.txt" and prints the time it was last modified to the screen. Additionally, it checks if the protection flag