Path: /sdk/add_on/scriptfile/
This object provides support for inspecting directories on the filesystem.
Register with RegisterScriptFileSystem(asIScriptEngine*)
.
Public C++ interface
class CScriptFileSystem
{
public:
CScriptFileSystem();
void AddRef() const;
void Release() const;
bool ChangeCurrentPath(const std::string &path);
std::string GetCurrentPath() const;
bool IsDir(const std::string &path) const;
bool IsLink(const std::string &path) const;
asINT64 GetSize(
const std::string &path)
const;
CScriptArray *GetFiles() const;
CScriptArray *GetDirs() const;
int MakeDir(const std::string &path);
int RemoveDir(const std::string &path);
int DeleteFile(const std::string &path);
int CopyFile(const std::string &source, const std::string &target);
int Move(const std::string &source, const std::string &target);
CDateTime GetCreateDateTime(const std::string &path) const;
CDateTime GetModifyDateTime(const std::string &path) const;
};
Public script interface
- See also
- filesystem