Path: /sdk/add_on/scriptfile/
This object provides support for inspecting directories on the filesystem.
Register with RegisterScriptFileSystem(asIScriptEngine*)
.
class filesystem { bool changeCurrentPath(const string &in); string getCurrentPath() const; array<string> @getDirs(); array<string> @getFiles(); bool isDir(const string &in); }
bool changeCurrentPath(const string &in path)
This changes the current directory used by the filesystem object. It will return true if the given path is valid.
It doesn't change the application' working directory.
string getCurrentPath() const
Returns the current path used by the filesystem object.
array<string> @getDirs()
Returns a list with the names of all directories in the current path.
array<string> @getFiles()
Returns a list with the names of all files in the current path.
bool isDir(const string &in path)
Returns true if the given path is a directory.