Functions allowing you to search for files, read them, write them, and access their properties.
| bool createPath |
( |
"file name or path name" |
| ) |
|
| bool directoryDelete |
( |
directoryName |
| ) |
|
- Parameters
-
| directoryName | Name of the directory to remove |
- Returns
- Returns true on success and false on failure
- Parameters
-
| fileName | Name of the file to remove |
- Returns
- Returns true on success and false on failure
- Parameters
-
| Name | of file from which to extract extension |
- Returns
- A string containing the file's extension (assuming all data after first '.' is the extension) or returns empty string on failure
| string fileName |
( |
filePathName |
| ) |
|
Extract the filename from the full path description
Extract the file path from a file's full desciption
- Parameters
-
| fileName | The name of the file to check. |
- Returns
- Returns the size of the file as an integer or -1 if file not found
| string findFirstFile |
( |
strPattern |
| ) |
|
- Parameters
-
| strPattern | The string pattern to search for. |
- Returns
- Returns a string representing the first file in the directory system matching the given pattern.
| string findFirstFileMultiExpr |
( |
strPattern |
| ) |
|
- Parameters
-
| strPattern | The string pattern to search for. |
- Returns
- Returns the first file in the directory system matching the given pattern.
| string findNextFile |
( |
strPattern |
| ) |
|
- Parameters
-
| strPattern | The string pattern to search for. |
- Returns
- Returns the next file matching a search begun in findFirstFile.
| string findNextFileMultiExpr |
( |
string |
pattern | ) |
|
Returns the next file matching a search begun in findFirstFile.
| string getCurrentDate |
( |
bool |
reverse | ) |
|
Gets the current date and time.
- Parameters
-
| 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 |
| ) |
|
- Parameters
-
| strPath | The path in which to check |
| intDepth | The depth in which to return (default 0 if not specified) |
- Returns
- The directory contents
| string getExecutableName |
( |
| ) |
|
| int getFileCount |
( |
strPattern |
| ) |
|
- Parameters
-
| strPattern | The string pattern to search for. |
- Returns
- Returns the number of files in the directory tree that match the given pattern
| int getFileCountMultiExpr |
( |
strPattern |
| ) |
|
- Parameters
-
| strPattern | The string pattern to search for. |
- Returns
- Returns the number of files in the directory tree that match the given pattern
| int getFileCRC |
( |
filename |
| ) |
|
- Parameters
-
| filename | The string representing the file from which to get the CRC |
- Returns
- An integer
| string getFileList |
( |
strPath |
| ) |
|
- Gets all the files in the specified directory.
- Parameters
-
| strPath | The path in which to check |
- Returns
- A list of files in the specified directory.
| string getMainDotCsDir |
( |
| ) |
|
| bool isDirectory |
( |
path |
| ) |
|
- Parameters
-
- Returns
- Returns true if the given path is a folder/directory, false otherwise
- Parameters
-
| fileName | Filename to check. |
- Returns
- Returns true if the given filename is an existing file or false otherwise
| bool isValidImageFile |
( |
string |
filePath | ) |
|
- Parameters
-
| filePath | Full path of file to check. |
- Returns
- Returns true if the given filename is a valid image file or false otherwise
- Parameters
-
| fileName | Filename to check. |
- Returns
- Returns true if the given filename is an existing file and is not Read-Only or false otherwise
| string makeFullPath |
( |
string |
path | ) |
|
| string makeRelativePath |
( |
string |
path, |
|
|
string |
to |
|
) |
| |
| string pathConcat |
( |
string |
path, |
|
|
string |
file1 |
|
) |
| |
| bool pathCopy |
( |
fromFile |
, |
|
|
toFile |
[, nooverwrite=true] |
|
) |
| |
| bool setCurrentDirectory |
( |
absolutePathName |
| ) |
|