Low level filesystem operations, requiring paths in native encoding (UTF-16 on Windows, UTF-8 elsewhere)
More...
#include <FileSystemOperations.h>
Low level filesystem operations, requiring paths in native encoding (UTF-16 on Windows, UTF-8 elsewhere)
- See also
- SC::FileSystem when an higher level API that also handles paths in a different encoding is needed
◆ copyDirectory()
Copy a directory.
- Parameters
-
srcPath | The source directory to copy |
destPath | The destination directory to copy to |
flags | The copy flags |
- Returns
- Result::Error if the directory could not be copied
◆ copyFile()
Copy a file.
- Parameters
-
srcPath | The source file to copy |
destPath | The destination file to copy to |
flags | The copy flags |
- Returns
- Result::Error if the file could not be copied
◆ createSymbolicLink()
Create a symbolic link.
- Parameters
-
sourceFileOrDirectory | The source file or directory to link to |
linkFile | The link file to create |
- Returns
- Result::Error if the symbolic link could not be created
◆ exists()
Check if a path exists.
- Parameters
-
- Returns
- Result::Error if the path could not be checked
◆ existsAndIsDirectory()
Check if a path exists and is a directory.
- Parameters
-
- Returns
- Result::Error if the path could not be checked
◆ existsAndIsFile()
Check if a path exists and is a file.
- Parameters
-
- Returns
- Result::Error if the path could not be checked
◆ existsAndIsLink()
Check if a path exists and is a link.
- Parameters
-
- Returns
- Result::Error if the path could not be checked
◆ getFileStat()
Get the file stat.
- Parameters
-
path | The path to the file to get the stat of |
fileStat | The file stat to fill |
◆ makeDirectory()
Create a directory.
- Parameters
-
dir | The directory to create |
- Returns
- Result::Error if the directory could not be created
◆ moveDirectory()
Move a directory.
- Parameters
-
source | The source directory to move |
destination | The destination directory to move to |
◆ removeDirectoryRecursive()
Remove a directory recursively.
- Parameters
-
directory | The directory to remove |
- Returns
- Result::Error if the directory could not be removed
◆ removeEmptyDirectory()
Remove an empty directory.
- Parameters
-
path | The path to the empty directory to remove |
- Returns
- Result::Error if the directory could not be removed
◆ removeFile()
Remove a file.
- Parameters
-
path | The path to the file to remove |
- Returns
- Result::Error if the file could not be removed
◆ rename()
Rename a file or directory.
- Parameters
-
path | The path to the file or directory to rename |
newPath | The new path to the file or directory |
- Returns
- Result::Error if the file or directory could not be renamed
◆ setLastModifiedTime()
Set the last modified time of a file.
- Parameters
-
path | The path to the file to set the last modified time of |
time | The last modified time to set |
- Returns
- Result::Error if the last modified time could not be set
The documentation for this struct was generated from the following file: