#include <file.h>
Definition at line 140 of file file.h.
◆ ScopedTemporaryDirectory()
fml::ScopedTemporaryDirectory::ScopedTemporaryDirectory |
( |
| ) |
|
Definition at line 47 of file file.cc.
49 if (path_ != "") {
51 }
52}
fml::UniqueFD OpenDirectory(const char *path, bool create_if_necessary, FilePermission permission)
std::string CreateTemporaryDirectory()
◆ ~ScopedTemporaryDirectory()
fml::ScopedTemporaryDirectory::~ScopedTemporaryDirectory |
( |
| ) |
|
Definition at line 54 of file file.cc.
54 {
55
56 if (path_ != "") {
58 FML_LOG(
ERROR) <<
"Could not clean directory: " << path_;
59 }
60 }
61
62
64 if (path_ != "") {
66 FML_LOG(
ERROR) <<
"Could not remove directory: " << path_;
67 }
68 }
69}
void reset(const T &value=Traits::InvalidValue())
#define FML_LOG(severity)
bool RemoveFilesInDirectory(const fml::UniqueFD &directory)
bool UnlinkDirectory(const char *path)
◆ fd()
const UniqueFD & fml::ScopedTemporaryDirectory::fd |
( |
| ) |
|
|
inline |
◆ path()
const std::string & fml::ScopedTemporaryDirectory::path |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following files: