|
Furrent
|
Typedefs | |
| template<typename T > | |
| using | IOResult = util::Result< T, IOError > |
| Empty result for handling IO errors. More... | |
Enumerations | |
| enum | IOError { IOError::GenericError, IOError::CannotOpenFile, IOError::InvalidPath, IOError::PathDoesNotExists, IOError::FileAlreadyExists, IOError::DirectoryAlreadyExists } |
Functions | |
| IOResult< Empty > | touch (const std::string &filename, int64_t size) |
| IOResult< bool > | exists (const std::string &filename) |
| IOResult< Empty > | remove (const std::string &filename) |
| IOResult< Empty > | write_bytes (const std::string &filename, const std::vector< uint8_t > &bytes, int64_t offset) |
| IOResult< std::string > | create_directories (const std::string &path, bool skip_last) |
| IOResult< std::string > | load_file_text (const std::string &filepath) |
| using fur::platform::io::IOResult = typedef util::Result<T, IOError> |
Empty result for handling IO errors.
|
strong |
| IOResult< std::string > fur::platform::io::create_directories | ( | const std::string & | path, |
| bool | skip_last = false |
||
| ) |
Create a nested folders structure
| path | path including all directories to create |
| skip_last | skip last section of the path, used for files |
| IOResult< bool > fur::platform::io::exists | ( | const std::string & | filename | ) |
Check if a directory or file exists
| filename | path to check |
| IOResult< std::string > fur::platform::io::load_file_text | ( | const std::string & | filepath | ) |
Load file content of a file
| filepath | filepath of the target file |
Removes a file or directory
| filename | filename of the target file/directory |
Create a new file on the disk
| filename | filename of the new file |
| size | size of the new file |
1.8.17