libzypp
13.10.6
|
Provide a new empty temporary directory and recursively delete it when no longer needed. More...
#include <TmpPath.h>
Public Member Functions | |
TmpDir (const Pathname &inParentDir_r=defaultLocation(), const std::string &prefix_r=defaultPrefix()) | |
Ctor. More... | |
Public Member Functions inherited from zypp::filesystem::TmpPath | |
TmpPath () | |
Default Ctor. More... | |
TmpPath (const Pathname &tmpPath_r) | |
Ctor. More... | |
virtual | ~TmpPath () |
Dtor. More... | |
operator bool () const | |
Test whether the Pathname is valid (i.e. More... | |
Pathname | path () const |
operator Pathname () const | |
Type conversion to Pathname. More... | |
bool | autoCleanup () const |
Whether path is valid and deleted when the last reference drops. More... | |
void | autoCleanup (bool yesno_r) |
Turn autoCleanup on/off if path is valid. More... | |
Static Public Member Functions | |
static TmpDir | makeSibling (const Pathname &sibling_r) |
Provide a new empty temporary directory as sibling. More... | |
static const std::string & | defaultPrefix () |
Static Public Member Functions inherited from zypp::filesystem::TmpPath | |
static const Pathname & | defaultLocation () |
Additional Inherited Members | |
Protected Attributes inherited from zypp::filesystem::TmpPath | |
RW_pointer< Impl > | _impl |
Provide a new empty temporary directory and recursively delete it when no longer needed.
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.
TmpDir provides the Pathname of the temporary directory , or an empty path in case of any error.
|
explicit |
Provide a new empty temporary directory as sibling.
If sibling_r
exists, sibling is created using the same mode.
Definition at line 287 of file TmpPath.cc.
|
static |
Definition at line 305 of file TmpPath.cc.