_server.getFileList()
Availability:
SmartFoxServer PRO 1.2.1
Usage:
_server.getFileList(path)
Description:
Retrieve the list of files and directories at the given path. If path is not specified the current path will be user which will be the Server/ folder of your SmartFoxServer installation dirctory.
Properties:
path | the directory path |
Returns:
An array with the directory listing.
Example:
// Get the file list in the default path var dir = _server.getFileList() // Trace the file list for (var i = 0; i < dir.length; i++) trace(dir[i])
See also: