|
TorqueScript Reference
|
Functions | |
| bool | createPath (fileName or pathName) |
| bool | directoryDelete (directoryName) |
| string | fileBase (fileName) |
| bool | fileDelete (fileName) |
| string | fileExt (fileName) |
| string | fileName (filePathName) |
| string | filePath (fileName) |
| int | fileSize (fileName) |
| string | findFirstFile (strPattern) |
| string | findFirstFileMultiExpr (strPattern) |
| string | findNextFile (strPattern) |
| string | findNextFileMultiExpr (string pattern) |
| string | getCurrentDate (bool reverse) |
| string | getCurrentDirectory () |
| string | getDirectoryList (strPath,[intDepth]?) |
| string | getExecutableName () |
| int | getFileCount (strPattern) |
| int | getFileCountMultiExpr (strPattern) |
| int | getFileCRC (filename) |
| string | getFileList (strPath) |
| string | getMainDotCsDir () |
| bool | isDirectory (path) |
| bool | isFile (fileName) |
| bool | isValidImageFile (string filePath) |
| bool | isWriteableFileName (fileName) |
| string | makeFullPath (string path,[string currentWorkingDir]?) |
| string | makeRelativePath (string path, string to) |
| void | openFolder (path) |
| string | pathConcat (string path, string file1,[...fileN]*) |
| bool | pathCopy (fromFile, toFile,[nooverwrite=true]?) |
| void | restartInstance () |
| bool | setCurrentDirectory (absolutePathName) |
| bool createPath | ( | fileName or | pathName | ) |
creates the path or path to the file name
| bool directoryDelete | ( | directoryName | ) |
| directoryName | Name of the directory to remove |
| string fileBase | ( | fileName | ) |
| bool fileDelete | ( | fileName | ) |
| fileName | Name of the file to remove |
| string fileExt | ( | fileName | ) |
| Name | of file from which to extract extension |
| string fileName | ( | filePathName | ) |
Extract the filename from the full path description
| string filePath | ( | fileName | ) |
Extract the file path from a file's full desciption
| int fileSize | ( | fileName | ) |
| 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 | ( | ) |
| int getFileCount | ( | strPattern | ) |
| strPattern | The string pattern to search for. |
| int getFileCountMultiExpr | ( | strPattern | ) |
| strPattern | The string pattern to search for. |
| int 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 | ( | ) |
| bool isDirectory | ( | path | ) |
| pathName | Path to check. |
| bool isFile | ( | fileName | ) |
| fileName | Filename to check. |
| bool isValidImageFile | ( | string | filePath | ) |
| filePath | Full path of file to check. |
| bool isWriteableFileName | ( | fileName | ) |
| 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] * | |||
| ) |
| bool pathCopy | ( | fromFile | , |
| toFile | , | ||
| [nooverwrite = true] ? | |||
| ) |
| void restartInstance | ( | ) |
| bool setCurrentDirectory | ( | absolutePathName | ) |
1.8.3.1