Path Functions

Return to Functions

GetFileDirectory

    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.

GetFilePathList

    Arguments:
        1) string: path
    Return Type:
        string array

Returns a list of files in the folder of the specified file path (or folder path).

GetDirectoryList

    Arguments:
        1) string: path
    Return Type:
        string array

Returns an array of the directories available within the directory of the specified path.

GetModuleDirectory

    Return Type:
        string

Returns the directory containing the running th_dnh.exe file.

GetMainStgScriptPath

    Return Type:
        string

Returns the path of the currently running stage script.

GetMainPackageScriptPath

    Return Type:
        string

Returns the path of the currently running package script.

GetMainStgScriptDirectory

    Return Type:
        string

Returns the directory of the currently running stage script.

GetCurrentScriptDirectory

    Return Type:
        string

Returns the directory of the file in which this function was called.

GetScriptPathList

    Arguments:
        1) string: path
        2) const real: scriptType
    Return Type:
        string array

Returns an array of available (selectable at selection screen) scripts of the specified type within the directory of the specified path. Script types are:

GetFileExtension

    Arguments:
        1) string: path
    Return Type:
        string

Returns the file extension from the given filename.