Arguments: 1) string: path Return Type: string
Returns the directory of the specified file path. Specifically, returns the input string up to the rightmost forward slash, with backslashes removed.
Arguments: 1) string: path Return Type: array[string]
Returns a list of files in the folder of the specified file path (or folder path).
This function will not list any files within an archive (.dat) file. In that case, use GetArchiveFilePathList instead.
Arguments: 1) string: archivePath 2) bool: bFullPath Return Type: array[string]
Returns an array of all file paths within the given archive file.
If bFullPath is true, the paths will be full absolute paths. Otherwise, they will be relative to the archive's directory.
Note: The archive file must already be loaded before calling this function.
Arguments: 1) string: path Return Type: array[string]
Returns an array of the directories available within the directory of the specified path.
Return Type: string
Returns the directory containing the running th_dnh.exe file.
Return Type: string
Returns the path of the currently running stage script.
Return Type: string
Returns the path of the currently running package script.
Return Type: string
Returns the directory of the currently running stage script.
Return Type: string
Returns the user-defined script directory.
This is set in the rdnh.def file with the UserScriptDir property.
Return Type: string
Returns the directory of the running script, ignoring included files.
Return Type: string
Returns the directory of the file in which this function was called.
Return Type: string
Returns the path of the file in which this function was called.
Arguments: 1) string: path 2) const real: scriptType Return Type: array[string]
Returns an array of available (selectable at selection screen) scripts of the specified type within the directory of the specified path.
Script types are:
Arguments: 1) string: path Return Type: string
Returns the file extension from the given filename.
Arguments: 1) string: path Returns: real: timestamp
Returns a timestamp representing the time this file was last written to in milliseconds.
This is useful for comparing to other timestamps of the same file to see if its contents have changed.
Arguments: 1) string: path Returns: bool: bExists
Returns true if the file exists, otherwise returns false.
Arguments: 1) string: path Returns: bool: bSucceeded
Deletes the file at the given path and returns whether or not the deletion succeeded.
For safety reasons, currently this function only works on full paths that contain the module directory.
Arguments: 1) string: pathSource 2) string: pathDest 3) bool: bOverwrite = false Returns: bool: bSucceeded
Copies the file from pathSource to pathDest.
If a file already exists at pathDest and bOverwrite is true, it will be overwritten. Otherwise, the function will fail.
Arguments: 1) string: pathSource 2) string: pathDest Returns: bool: bSucceeded
Renames the file at pathSource to pathDest.
If a file already exists at pathDest and bOverwrite is true, it will be overwritten. Otherwise, the function will fail.
This function will also fail if the source and destination are in different directories.