Navigation
Usage Information
Developer Information
Addon and Plugin Documentation
Addons
Plugins
Navigation
Usage Information
Developer Information
Addon and Plugin Documentation
Addons
Plugins
The file namespace contains functions that interact with files and folders on the clients system.
You can access these functions via:
ashita.file.
Creates a directory on the clients system. (Any sub-directories upto the end folder that are not present will also be created.)
bool ashita.file.create_dir(path);
Determines if the given path exists.
bool ashita.file.dir_exists(path);
Determines if the given file exists.
bool ashita.file.file_exists(file);
Obtains and returns a directories contents.
bool ashita.file.get_dir(root, mask, subs);
If only the root path is given to this function, it will return a table containing a list of folders found within the given directory. If a mask is given, the function will instead return any file/folder that matches the mask given.
Obtains the install path to a given Square Enix entity.
string ashita.file.get_install_dir(langId, entityId);