Changeset View
Changeset View
Standalone View
Standalone View
source/ps/scripting/JSInterface_VFS.h
Show All 32 Lines | namespace JSI_VFS | ||||
// | // | ||||
// pathnames = buildDirEntList(start_path [, filter_string [, recursive ] ]); | // pathnames = buildDirEntList(start_path [, filter_string [, recursive ] ]); | ||||
// directory: VFS path | // directory: VFS path | ||||
// filter_string: see match_wildcard; "" matches everything. | // filter_string: see match_wildcard; "" matches everything. | ||||
// recurse: should subdirectories be included in the search? default false. | // recurse: should subdirectories be included in the search? default false. | ||||
// | // | ||||
// note: full pathnames of each file/subdirectory are returned, | // note: full pathnames of each file/subdirectory are returned, | ||||
// ready for use as a "filename" for the other functions. | // ready for use as a "filename" for the other functions. | ||||
JS::Value BuildDirEntList(ScriptInterface::CxPrivate* pCxPrivate, 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 CStrW& filename); | bool FileExists(ScriptInterface::CxPrivate* pCxPrivate, 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(ScriptInterface::CxPrivate* pCxPrivate, const std::wstring& filename); | ||||
// Return current size of file. | // Return current size of file. | ||||
Show All 23 Lines |
Wildfire Games · Phabricator