Classes | |
| class | FileSystemError |
Functions | |
| bool | existFile (const std::string &path) |
| bool | existDirectory (const std::string &path) |
| bool | existDirectory (const std::string &parentDirectory, const std::string &name) |
| void | listDirectory (const std::string &path, std::vector< std::string > &entries) |
| void | createDirectory (const std::string &path) |
| void | createDirectory (const std::string &parentDirectory, const std::string &name) |
| void | removeDirectory (const std::string &path) |
| void | renameDirectory (const std::string &path, const std::string &newPath) |
| long long | getFileSize (const std::string &path) |
| std::string | getCurrentDirectory () |
| bool | isAbsolutePath (const std::string &path) |
A namespace with filesystem utility functions.
| void filesystem::createDirectory | ( | const std::string & | path | ) |
Create a directory in the given absolute path.
| path | An absolute directory path. |
| FileSystemError | if the operation has failed. |
| void filesystem::createDirectory | ( | const std::string & | parentDirectory, |
| const std::string & | name | ||
| ) |
Create a directory in the given parent directory.
| parentDirectory | The absolue path of a parent directory. |
| name | A name for the new directory. |
| FileSystemError | if the operation has failed. |
| bool filesystem::existDirectory | ( | const std::string & | path | ) |
| path | The path of a certain directory. |
| bool filesystem::existDirectory | ( | const std::string & | parentDirectory, |
| const std::string & | name | ||
| ) |
| parentDirectory | The path of a certain directory. |
| name | The name of a certain directory. |
| bool filesystem::existFile | ( | const std::string & | path | ) |
Max size allowed for an absolute path.
| path | The path of a certain file. |
| string filesystem::getCurrentDirectory | ( | ) |
| FileSystemError | if the operation has failed. |
| long long filesystem::getFileSize | ( | const std::string & | path | ) |
| path | An absolute file path. |
| FileSystemError | if the operation has failed. |
| bool filesystem::isAbsolutePath | ( | const std::string & | path | ) |
| path | A path of a file or a directory. |
| void filesystem::listDirectory | ( | const std::string & | path, |
| std::vector< std::string > & | entries | ||
| ) |
List a given directory.
| path | The path of a certain directory. |
| entries | A string vector to store the directory content. |
| FileSystemError | if the operation has failed. |
| void filesystem::removeDirectory | ( | const std::string & | path | ) |
Remove the given absolute directory path.
| path | An absolute directory path. |
| FileSystemError | if the operation has failed. |
| void filesystem::renameDirectory | ( | const std::string & | path, |
| const std::string & | newPath | ||
| ) |
Rename the given absolute directory path.
| newPath | The new name for the directory. |
| FileSystemError | if the operation has failed. |
1.8.8