Sane C++ Libraries
C++ Platform Abstraction Libraries
Loading...
Searching...
No Matches
SC::FileSystem::Operations Struct Reference

Low level filesystem API, requiring paths in native encoding (UTF-16 on Windows, UTF-8 elsewhere) More...

#include <FileSystem.h>

Static Public Member Functions

static bool access (StringSpan path, AccessMode accessMode)
 
static ResultFileSystem access (StringSpan path, AccessMode accessMode, bool &canAccessPath)
 
static ResultFileSystem createSymbolicLink (StringSpan sourceFileOrDirectory, StringSpan linkFile)
 
static ResultFileSystem createHardLink (StringSpan sourceFile, StringSpan linkFile)
 
static ResultFileSystem makeDirectory (StringSpan dir)
 
static bool exists (StringSpan path)
 
static ResultFileSystem exists (StringSpan path, bool &doesExist)
 
static bool existsAndIsDirectory (StringSpan path)
 
static ResultFileSystem existsAndIsDirectory (StringSpan path, bool &isDirectory)
 
static bool existsAndIsFile (StringSpan path)
 
static ResultFileSystem existsAndIsFile (StringSpan path, bool &isFile)
 
static bool existsAndIsLink (StringSpan path)
 
static ResultFileSystem existsAndIsLink (StringSpan path, bool &isLink)
 
static ResultFileSystem makeDirectoryRecursive (StringSpan path)
 
static ResultFileSystem removeEmptyDirectory (StringSpan path)
 
static ResultFileSystem moveDirectory (StringSpan source, StringSpan destination)
 
static ResultFileSystem removeFile (StringSpan path)
 
static ResultFileSystem copyFile (StringSpan srcPath, StringSpan destPath, FileSystemCopyFlags flags)
 
static ResultFileSystem rename (StringSpan path, StringSpan newPath)
 
static ResultFileSystem copyDirectory (StringSpan srcPath, StringSpan destPath, FileSystemCopyFlags flags)
 
static ResultFileSystem removeDirectoryRecursive (StringSpan directory)
 
static ResultFileSystem stat (StringSpan path, FileSystemStat &fileStat)
 
static ResultFileSystem lstat (StringSpan path, FileSystemStat &fileStat)
 
static ResultFileSystem getFileStat (StringSpan path, FileSystemStat &fileStat)
 
static ResultFileSystem readSymbolicLink (StringSpan path, StringPath &destination)
 
static ResultFileSystem chmod (StringSpan path, uint32_t mode)
 
static ResultFileSystem chown (StringSpan path, uint32_t uid, uint32_t gid)
 
static ResultFileSystem lchown (StringSpan path, uint32_t uid, uint32_t gid)
 
static ResultFileSystem lchmod (StringSpan path, uint32_t mode)
 
static ResultFileSystem setLastModifiedTime (StringSpan path, TimeMs time)
 
static StringSpan getExecutablePath (StringPath &executablePath)
 
static StringSpan getCurrentWorkingDirectory (StringPath &currentWorkingDirectory)
 
static StringSpan getApplicationRootDirectory (StringPath &applicationRootDirectory)
 

Detailed Description

Low level filesystem API, requiring paths in native encoding (UTF-16 on Windows, UTF-8 elsewhere)

See also
SC::FileSystem is the higher level API that also handles paths in a different encoding is needed

The documentation for this struct was generated from the following file: