aboutsummaryrefslogtreecommitdiffstats
path: root/util/folder/dirut.h
diff options
context:
space:
mode:
authorsmikler <smikler@yandex-team.ru>2022-02-10 16:49:32 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:32 +0300
commite4f0fd4ab53ca40eb91e750cf3e7f76c21e930db (patch)
treeafee3c8173a0960bf439959f26e7624d1212e11a /util/folder/dirut.h
parent1503061b80644305b2e6dd1327b57118e35ebd31 (diff)
downloadydb-e4f0fd4ab53ca40eb91e750cf3e7f76c21e930db.tar.gz
Restoring authorship annotation for <smikler@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/folder/dirut.h')
-rw-r--r--util/folder/dirut.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/util/folder/dirut.h b/util/folder/dirut.h
index 2537027b12d..f52b66106d5 100644
--- a/util/folder/dirut.h
+++ b/util/folder/dirut.h
@@ -47,8 +47,8 @@ void MakeDirIfNotExist(const char* path, int mode = 0777);
inline void MakeDirIfNotExist(const TString& path, int mode = 0777) {
MakeDirIfNotExist(path.data(), mode);
-}
-
+}
+
/// Create path making parent directories as needed
void MakePathIfNotExist(const char* path, int mode = 0777);
@@ -65,8 +65,8 @@ const char* GetFileNameComponent(const char* f);
inline TString GetFileNameComponent(const TString& f) {
return GetFileNameComponent(f.data());
-}
-
+}
+
/// RealPath doesn't guarantee trailing separator to be stripped or left in place for directories.
TString RealPath(const TString& path); // throws
TString RealLocation(const TString& path); /// throws; last file name component doesn't need to exist
@@ -88,7 +88,7 @@ TString GetDirName(const TString& path);
TString GetBaseName(const TString& path);
TString StripFileComponent(const TString& fileName);
-
+
class TExistenceChecker {
public:
TExistenceChecker(bool strict = false)