Medial Code Documentation
|
Manager class for temporary directories. Whenever a new TemporaryDirectory object is constructed, a temporary directory is created. The directory is deleted when the object is deleted or goes out of scope. Note: no symbolic links are allowed inside the temporary directory. More...
#include <filesystem.h>
Public Member Functions | |
TemporaryDirectory (bool verbose=false) | |
Default constructor. Creates a new temporary directory with a unique name. | |
~TemporaryDirectory () | |
Destructor. Will perform recursive deletion via RecursiveDelete() | |
Data Fields | |
std::string | path |
Full path of the temporary directory. | |
Manager class for temporary directories. Whenever a new TemporaryDirectory object is constructed, a temporary directory is created. The directory is deleted when the object is deleted or goes out of scope. Note: no symbolic links are allowed inside the temporary directory.
Usage example:
|
inlineexplicit |
Default constructor. Creates a new temporary directory with a unique name.
verbose | whether to emit extra messages |