|
xrpld
|
RAII temporary directory. More...
#include <FileUtilities.h>

Public Member Functions | |
| TempDir () | |
| Construct a temporary directory. | |
| ~TempDir () | |
| Destroy a temporary directory. | |
| std::string | path () const |
| Get the native path for the temporary directory. | |
| std::string | file (std::string const &name) const |
| Get the native path for a file. | |
Private Attributes | |
| std::filesystem::path | path_ |
RAII temporary directory.
The directory and all its contents are deleted when the instance of TempDir is destroyed.
Definition at line 43 of file FileUtilities.h.
| xrpl::TempDir::TempDir | ( | ) |
Construct a temporary directory.
Definition at line 110 of file libxrpl/basics/FileUtilities.cpp.
| xrpl::TempDir::~TempDir | ( | ) |
Destroy a temporary directory.
Definition at line 115 of file libxrpl/basics/FileUtilities.cpp.
|
nodiscard |
Get the native path for the temporary directory.
Definition at line 128 of file libxrpl/basics/FileUtilities.cpp.
|
nodiscard |
Get the native path for a file.
The file does not need to exist.
Definition at line 134 of file libxrpl/basics/FileUtilities.cpp.
|
private |
Definition at line 45 of file FileUtilities.h.