|
TorqueScript Reference
|
| Boolean createPath | ( | pathName | ) |
Creates the path, verifing all the elements in a path exist or creating them if they do not. Note that the path should end with a slash (/). Otherwise, the last element in the path will be assumed to be a filename and not a path component, and it will not be created. For example "data/stage2/part1" will verify or create "data/stage2/" and not "part1".
| Boolean directoryDelete | ( | directoryName | ) |
| directoryName | Name of the directory to remove |
| fileName | Name of the file to remove |
| Name | of file from which to extract extension |
| String fileName | ( | filePathName | ) |
Extract the filename from the full path description
| fileName | The name of the file to check. |
| String findFirstFile | ( | strPattern | ) |
| strPattern | The string pattern to search for. |
| String findFirstFileMultiExpr | ( | strPattern | ) |
| strPattern | The string pattern to search for. |
| String findNextFile | ( | strPattern | ) |
| strPattern | The string pattern to search for. |
| String findNextFileMultiExpr | ( | string | pattern | ) |
Returns the next file matching a search begun in findFirstFile.
| String getCurrentDate | ( | bool | reverse | ) |
Gets the current date and time.
| reverse | Determines if the format will be Month/Day/Year/Hour:Min:Seconds or Year/Month/Day/Hour:Min:Seconds |
| String getCurrentDirectory | ( | ) |
| String getDirectoryList | ( | strPath | , |
| [intDepth] ? | |||
| ) |
| strPath | The path in which to check |
| intDepth | The depth in which to return (default 0 if not specified) |
| String getExecutableName | ( | ) |
| Integer getFileCount | ( | strPattern | ) |
| strPattern | The string pattern to search for. |
| Integer getFileCountMultiExpr | ( | strPattern | ) |
| strPattern | The string pattern to search for. |
| Integer getFileCRC | ( | filename | ) |
| filename | The string representing the file from which to get the CRC |
| String getFileList | ( | strPath | ) |
Gets all the files in the specified directory.
| strPath | The path in which to check |
| String getMainDotCsDir | ( | ) |
| String getTemporaryDirectory | ( | ) |
Gets the path to the system's temporary directory
| String getTemporaryFileName | ( | ) |
Generates a temporary filename for use.
| String getUserDataDirectory | ( | ) |
| String getUserHomeDirectory | ( | ) |
| Boolean isDirectory | ( | path | ) |
| pathName | Path to check. |
| fileName | Filename to check. |
| Boolean isValidImageFile | ( | string | filePath | ) |
| filePath | Full path of file to check. |
| fileName | Filename to check. |
| String makeFullPath | ( | string | path, |
| [string currentWorkingDir] ? | |||
| ) |
| String makeRelativePath | ( | string | path, |
| string | to | ||
| ) |
| void openFolder | ( | path | ) |
;
| String pathConcat | ( | string | path, |
| string | file1, | ||
| [... fileN] * | |||
| ) |
| Boolean pathCopy | ( | fromFile | , |
| toFile | , | ||
| [nooverwrite = true] ? | |||
| ) |
| void restartInstance | ( | ) |
| Boolean setCurrentDirectory | ( | absolutePathName | ) |
1.8.10