Maat C++ Documentation
|
Public Member Functions | |
Directory (SnapshotManager< env::Snapshot > *snapshots) | |
bool | create_file (fspath_t path, bool create_path=false) |
Create new file. | |
physical_file_t | get_file (fspath_t path) |
Get physical file object. Throws exception if the file doesn't exist. | |
bool | delete_file (fspath_t path, bool weak=true) |
Delete physical file. | |
bool | create_dir (fspath_t path) |
Create new sub-directory. | |
directory_t | get_dir (fspath_t path) |
Get directory object. Throws exception if the directory doesn't exist. | |
bool | delete_dir (fspath_t path, bool weak=true) |
Delete sub directory. | |
node_status_t | get_node_status (fspath_t path) |
Get status of node. | |
void | delete_self (bool recursive=true, bool weak=true) |
Delete the directory. | |
void | print (std::ostream &os, const std::string &indent) const |
Print directory to output stream. | |
Protected Attributes | |
bool | deleted |
Friends | |
class | FileSystem |
maat::env::Directory::Directory | ( | SnapshotManager< env::Snapshot > * | snapshots | ) |
Create a new empty directory