#include <TmpPath.h>
Inheritance diagram for TmpDir:
Public Member Functions | |
TmpDir (const Pathname &inParentDir_r=defaultLocation(), const std::string &prefix_r=defaultPrefix()) | |
Static Public Member Functions | |
static const std::string & | defaultPrefix () |
The temporary directory is per default created in '/var/tmp' and ' named TmpDir.XXXXXX', with XXXXXX replaced by a string which makes the name unique. Different location and file prefix may be passed to the ctor. TmpDir is created with mode 0700.
The directory where the temporary directory is to be created must exist. TmpDir provides the Pathname of the temporary directory , or an empty path in case of any error.
|
Ctor. Takes a Pathname. |
|
|