aboutsummaryrefslogtreecommitdiffstats
path: root/util/folder/tempdir.h
diff options
context:
space:
mode:
authoraosipenko <aosipenko@yandex-team.ru>2022-02-10 16:48:08 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:48:08 +0300
commit69e3c43df1c96bc2ac8946bf4dfb1f5fc438ff7f (patch)
treeb222e5ac2e2e98872661c51ccceee5da0d291e13 /util/folder/tempdir.h
parent948fd24d47d4b3b7815aaef1686aea00ef3f4288 (diff)
downloadydb-69e3c43df1c96bc2ac8946bf4dfb1f5fc438ff7f.tar.gz
Restoring authorship annotation for <aosipenko@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/folder/tempdir.h')
-rw-r--r--util/folder/tempdir.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/util/folder/tempdir.h b/util/folder/tempdir.h
index 1422669f02..ff458f83b9 100644
--- a/util/folder/tempdir.h
+++ b/util/folder/tempdir.h
@@ -1,19 +1,19 @@
-#pragma once
-
+#pragma once
+
#include "fwd.h"
#include "path.h"
#include <util/generic/string.h>
-
-class TTempDir {
-public:
+
+class TTempDir {
+public:
/// Create new directory in system tmp folder.
- TTempDir();
+ TTempDir();
/// Create new directory with this fixed name. If it already exists, clear it.
TTempDir(const TString& tempDir);
- ~TTempDir();
-
+ ~TTempDir();
+
/// Create new directory in given folder.
static TTempDir NewTempDir(const TString& root);
@@ -26,12 +26,12 @@ public:
}
const TFsPath& Path() const {
- return TempDir;
- }
-
+ return TempDir;
+ }
+
void DoNotRemove();
-private:
+private:
struct TCreationToken {};
// Prevent people from confusing this ctor with the public one
@@ -40,4 +40,4 @@ private:
TFsPath TempDir;
bool Remove;
-};
+};