_server.isDir()
Availability:
SmartFoxServer PRO 1.2.1
Usage:
_server.isDir(fileName)
Description:
Checks if the passed argument is a directory.
Properties:
| fileName | the name of the directory to check |
Returns:
True if the passed argument is a directory.
Example:
/*
* Check if the log folder is a Directory
*/
var isDir = _server.isDir("logs")
if (exist)
trace("It's a directory !")
else
trace("Not a directory, probably a file!")
See also: