Error getting tags :
error 404Error getting tags :
error 404 files | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Expander triangle

the [detailed | long] files


Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
Returns a list of files in the defaultFolder.

put the files into field "Current Files"
repeat with x = 1 to the number of lines of the detailed files
put the files & the folders into diskContents[the defaultFolder]

Additional Comments
Expander triangle

Use the files function to obtain a list of files to display for the user, or to perform an action on each file in the current folder.


The files function returns a list of file names, one per line.

The detailed files form returns a list of files, one file per line. Each line contains the following attributes, separated by commas:

* The file's name, URL-encoded

* The file's size in bytes (on Mac OS and OS X systems, the size of the file's data fork)

* The resource fork size in bytes (Mac OS and OS X systems only)

* The file's creation date in seconds (Mac OS, OS X, and Windows systems only)

* The file's modification date in seconds

* The file's last-accessed date in seconds (Unix, OS X and Windows systems only)

* The file's last-backup date in seconds (Mac OS and OS X systems only)

* The file's owner (Unix and OS X systems only)

* The file's group owner (Unix and OS X systems only)

* The file's access permissions

* The file's creator and file type (Mac OS and OS X only)

Any attribute that is not supported on the current system is reported as empty.


Folders in the defaultFolder are not included. To get a list of folders, use the folders function.

The names of aliases (on Mac OS and OS X systems), symbolic links (on Unix systems), and shortcuts (on Windows systems) are included in the value returned by the files if they refer to a file. If they refer to a folder, they are not included.

The forms the detailed files and the long files are synonyms.

When listed in the detailed files form, each file's name is URL-encoded. To obtain the name in plain text, use the URLDecode function. If the detailed modifier is not used, the filename is not encoded.

The access permissions returned in the detailed files form consist of three octal digits. The form is the same as that used for the umask command.

The creator and file type returned in the detailed files form is an eight-character string. The first four characters are the creator signature, and the last four are the file type.

Changes to Revolution:

The detailed files form was introduced in version 1.1. In previous versions, the files function provided only a list of file names.

User Comments
Expander triangle
User thumbnail
Dec 17, 2009
On OS X system hidden files (names starting with a dot, e.g. ".DS_Store") are also returned in the list returned by the files function. It is usually necessary to get rid of them before using the list.
User thumbnail
Feb 11, 2010
This will not return creator codes for every file; only works for some.
Obviously will not return Mac creator codes on Mac files examined on Windows or Linux machines.