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 Result access (StringSpan path, AccessMode accessMode)
 
static Result createSymbolicLink (StringSpan sourceFileOrDirectory, StringSpan linkFile)
 
static Result createHardLink (StringSpan sourceFile, StringSpan linkFile)
 
static Result makeDirectory (StringSpan dir)
 
static Result exists (StringSpan path)
 
static Result existsAndIsDirectory (StringSpan path)
 
static Result existsAndIsFile (StringSpan path)
 
static Result existsAndIsLink (StringSpan path)
 
static Result makeDirectoryRecursive (StringSpan path)
 
static Result removeEmptyDirectory (StringSpan path)
 
static Result moveDirectory (StringSpan source, StringSpan destination)
 
static Result removeFile (StringSpan path)
 
static Result copyFile (StringSpan srcPath, StringSpan destPath, FileSystemCopyFlags flags)
 
static Result rename (StringSpan path, StringSpan newPath)
 
static Result copyDirectory (StringSpan srcPath, StringSpan destPath, FileSystemCopyFlags flags)
 
static Result removeDirectoryRecursive (StringSpan directory)
 
static Result stat (StringSpan path, FileSystemStat &fileStat)
 
static Result lstat (StringSpan path, FileSystemStat &fileStat)
 
static Result getFileStat (StringSpan path, FileSystemStat &fileStat)
 
static Result readSymbolicLink (StringSpan path, StringPath &destination)
 
static Result chmod (StringSpan path, uint32_t mode)
 
static Result chown (StringSpan path, uint32_t uid, uint32_t gid)
 
static Result lchown (StringSpan path, uint32_t uid, uint32_t gid)
 
static Result lchmod (StringSpan path, uint32_t mode)
 
static Result 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: