|
IsDirectory |
Top Previous Next |
|
IsDirectory
Syntax IsDirectory([in] FilePath, [out] IsDirectoryFlagVar);
Description To detect whether a path is a directory.
Parameters FilePath The path to be detected. IsDirectoryFlagVar The name of the variable to receive the return flag. 0 = Path is not a directory 1 = Path is a directory
Return 1 = success 0 = failed -1 = FSCommands cannot be found
Example
FSCommand("IsDirectory", "C:\\Test.dat,FlagVar");
This will detect whether C:\Test.dat is a directory. _root.FlagVar variable will be set upon completion of this FSCommand.
You can use an escape character ~ (tilda) to insert a comma into a file path. |