![]() |
Block-Structured AMR Software Framework
|
Functions | |
| bool | Exists (std::string const &filename) |
| Check if the given path exists. Symbolic links are checked without following the link, so a dangling symbolic link is considered to exist. | |
| std::string | CurrentPath () |
| Return the current working directory. | |
| bool | Remove (std::string const &filename) |
| Remove a file, symbolic link, or empty directory. | |
| bool | RemoveAll (std::string const &p) |
| Recursively remove a path. | |
| bool | CreateDirectories (std::string const &path, mode_t mode, bool verbose=false) |
| Create a directory and any missing parent directories. | |
| bool amrex::FileSystem::CreateDirectories | ( | std::string const & | path, |
| mode_t | mode, | ||
| bool | verbose = false |
||
| ) |
Create a directory and any missing parent directories.
| path | directory path to create |
| mode | requested permissions for newly-created directories on POSIX platforms; ignored on Windows |
| verbose | print a diagnostic message when directory creation fails |
std::filesystem::create_directories, which is true only when a directory was actually created and false both when the directory already existed and when creation failed with an error. | std::string amrex::FileSystem::CurrentPath | ( | ) |
Return the current working directory.
| bool amrex::FileSystem::Exists | ( | std::string const & | filename | ) |
Check if the given path exists. Symbolic links are checked without following the link, so a dangling symbolic link is considered to exist.
| filename | path to check |
| bool amrex::FileSystem::Remove | ( | std::string const & | filename | ) |
Remove a file, symbolic link, or empty directory.
| filename | path to remove |
| bool amrex::FileSystem::RemoveAll | ( | std::string const & | p | ) |
Recursively remove a path.
| p | path to remove |