diff options
author | akhropov <akhropov@yandex-team.ru> | 2022-02-10 16:46:32 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:32 +0300 |
commit | 00afc96e9c0298054b7386fa7fb9e3cc3d67b974 (patch) | |
tree | cb7a9f4a92c0d4cc5a86eeed49ad71e810953c1f /util/folder/dirut.cpp | |
parent | 83a8efcf3af051e3dd59c00d1d5dafc96412ec1e (diff) | |
download | ydb-00afc96e9c0298054b7386fa7fb9e3cc3d67b974.tar.gz |
Restoring authorship annotation for <akhropov@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/folder/dirut.cpp')
-rw-r--r-- | util/folder/dirut.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/util/folder/dirut.cpp b/util/folder/dirut.cpp index ffc9b09f967..8c030840699 100644 --- a/util/folder/dirut.cpp +++ b/util/folder/dirut.cpp @@ -375,12 +375,12 @@ char GetDirectorySeparator() { const char* GetDirectorySeparatorS() { return LOCSLASH_S; } - + void RemoveDirWithContents(TString dirName) { - SlashFolderLocal(dirName); - + SlashFolderLocal(dirName); + TDirIterator dir(dirName, TDirIterator::TOptions(FTS_NOSTAT)); - + for (auto it = dir.begin(); it != dir.end(); ++it) { switch (it->fts_info) { case FTS_F: @@ -392,8 +392,8 @@ void RemoveDirWithContents(TString dirName) { ythrow TSystemError() << "error while removing " << it->fts_path; break; } - } -} + } +} int mkpath(char* path, int mode) { return NFs::MakeDirectoryRecursive(path, NFs::EFilePermission(mode)) ? 0 : -1; |