Changeset View
Changeset View
Standalone View
Standalone View
source/ps/scripting/JSInterface_VFS.h
Show All 24 Lines | namespace JSI_VFS | ||||
// Return an array of pathname strings, one for each matching entry in the | // Return an array of pathname strings, one for each matching entry in the | ||||
// specified directory. | // specified directory. | ||||
JS::Value BuildDirEntList(ScriptInterface::CxPrivate* pCxPrivate, const std::vector<CStrW>& validPaths, const std::wstring& path, const std::wstring& filterStr, bool recurse); | JS::Value BuildDirEntList(ScriptInterface::CxPrivate* pCxPrivate, const std::vector<CStrW>& validPaths, const std::wstring& path, const std::wstring& filterStr, bool recurse); | ||||
// Return true iff the file exists | // Return true iff the file exists | ||||
bool FileExists(ScriptInterface::CxPrivate* pCxPrivate, const std::vector<CStrW>& validPaths, const CStrW& filename); | bool FileExists(ScriptInterface::CxPrivate* pCxPrivate, const std::vector<CStrW>& validPaths, const CStrW& filename); | ||||
// Return time [seconds since 1970] of the last modification to the specified file. | // Return time [seconds since 1970] of the last modification to the specified file. | ||||
double GetFileMTime(ScriptInterface::CxPrivate* pCxPrivate, const std::wstring& filename); | double GetFileMTime(const std::wstring& filename); | ||||
// Return current size of file. | // Return current size of file. | ||||
unsigned int GetFileSize(ScriptInterface::CxPrivate* pCxPrivate, const std::wstring& filename); | unsigned int GetFileSize(const std::wstring& filename); | ||||
// Return file contents in a string. | // Return file contents in a string. | ||||
JS::Value ReadFile(ScriptInterface::CxPrivate* pCxPrivate, const std::wstring& filename); | JS::Value ReadFile(ScriptInterface::CxPrivate* pCxPrivate, const std::wstring& filename); | ||||
// Return file contents as an array of lines. | // Return file contents as an array of lines. | ||||
JS::Value ReadFileLines(ScriptInterface::CxPrivate* pCxPrivate, const std::wstring& filename); | JS::Value ReadFileLines(ScriptInterface::CxPrivate* pCxPrivate, const std::wstring& filename); | ||||
// Return file contents parsed as a JS Object | // Return file contents parsed as a JS Object | ||||
Show All 14 Lines |
Wildfire Games · Phabricator