diff options
author | smikler <smikler@yandex-team.ru> | 2022-02-10 16:49:33 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:33 +0300 |
commit | 0e68ae909d3b76a5a001a07880eb0010dec6b2ea (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /util/folder/dirut.h | |
parent | e4f0fd4ab53ca40eb91e750cf3e7f76c21e930db (diff) | |
download | ydb-0e68ae909d3b76a5a001a07880eb0010dec6b2ea.tar.gz |
Restoring authorship annotation for <smikler@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/folder/dirut.h')
-rw-r--r-- | util/folder/dirut.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/util/folder/dirut.h b/util/folder/dirut.h index f52b66106d5..2537027b12d 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) |