OpenMPCD
|
Provides utility functions for filesystem access. More...
#include <FilesystemUtilities.hpp>
Static Public Member Functions | |
static void | ensureDirectory (const std::string &path) |
Ensures that the given directory exists, creating it and its parents if necessary. More... | |
static void | ensureParentDirectory (const std::string &path) |
Ensures that the parent directory of the path given exists. More... | |
Provides utility functions for filesystem access.
Definition at line 16 of file FilesystemUtilities.hpp.
|
static |
Ensures that the given directory exists, creating it and its parents if necessary.
IOException | Throws on failure. |
[in] | path | The directory's path. |
Definition at line 9 of file FilesystemUtilities.cpp.
|
static |
Ensures that the parent directory of the path given exists.
If the path given has no parent, nothing is done.
IOException | Throws on failure. |
[in] | path | The path in question. |
Definition at line 18 of file FilesystemUtilities.cpp.