137_meta_inline
bool fsExist(_In_opt_ strref path)
146_meta_inline
bool fsIsDir(_In_opt_ strref path)
169bool fsSetTimes(_In_opt_ strref path, int64 modified, int64 accessed);
223bool fsRename(_In_opt_ strref from, _In_opt_ strref to);
enum FSSeekTypeEnum FSSeekType
@ FS_Set
Seek from beginning of file (absolute position)
@ FS_End
Seek from end of file (usually negative offset)
@ FS_Cur
Seek from current file position (relative)
@ FS_Write
Open for writing.
@ FS_Lock
Request exclusive access (other processes can read but not write)
@ FS_Create
Create file if it doesn't exist.
@ FS_Overwrite
Create or truncate for writing.
@ FS_Read
Open for reading.
@ FS_Truncate
Truncate file to zero length on open.
void fsSearchFinish(FSSearchIter *iter)
bool fsRename(strref from, strref to)
bool fsIsDir(strref path)
bool fsSearchValid(FSSearchIter *iter)
void pathToPlatform(string *out, strref path)
bool fsSearchNext(FSSearchIter *iter)
void fsExeDir(string *out)
bool fsSetCurDir(strref cur)
bool fsIsFile(strref path)
void pathFromPlatform(string *out, strref platformpath)
bool fsRemoveDir(strref path)
FSPathStat fsStat(strref path, FSStat *stat)
void fsCurDir(string *out)
bool fsDelete(strref path)
bool fsSearchInit(FSSearchIter *iter, strref path, strref pattern, bool stat)
bool fsCreateDir(strref path)
enum FSPathStatEnum FSPathStat
bool fsExist(strref path)
bool fsSetTimes(strref path, int64 modified, int64 accessed)
bool fsCreateAll(strref path)
bool pathMakeAbsolute(string *out, strref path)
@ FS_Directory
Path is a directory.
@ FS_File
Path is a regular file.
@ FS_Nonexistent
Path does not exist.
int type
FSPathStat type (FS_File or FS_Directory)
void * _search
Internal search state - do not access.
FSStat stat
File metadata (only valid if stat=true in fsSearchInit)
string name
Filename (not full path, valid until next search operation)
int64 accessed
Last access time.
int64 modified
Last modification time.
uint64 size
Size in bytes (0 for directories)
int64 created
Creation time (birth time)