diff options
author | Vlad Yaroslavlev <vladon@vladon.com> | 2022-02-10 16:46:23 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:23 +0300 |
commit | 706b83ed7de5a473436620367af31fc0ceecde07 (patch) | |
tree | 103305d30dec77e8f6367753367f59b3cd68f9f1 /util/folder/iterator.h | |
parent | 918e8a1574070d0ec733f0b76cfad8f8892ad2e5 (diff) | |
download | ydb-706b83ed7de5a473436620367af31fc0ceecde07.tar.gz |
Restoring authorship annotation for Vlad Yaroslavlev <vladon@vladon.com>. Commit 1 of 2.
Diffstat (limited to 'util/folder/iterator.h')
-rw-r--r-- | util/folder/iterator.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/util/folder/iterator.h b/util/folder/iterator.h index 69e025b9c4..cce6aee8d4 100644 --- a/util/folder/iterator.h +++ b/util/folder/iterator.h @@ -11,7 +11,7 @@ class TDirIterator: public TInputRangeAdaptor<TDirIterator> { struct TFtsDestroy { - static inline void Destroy(FTS* f) noexcept { + static inline void Destroy(FTS* f) noexcept { yfts_close(f); } }; @@ -36,33 +36,33 @@ public: Init(opts); } - inline TOptions& SetMaxLevel(size_t level) noexcept { + inline TOptions& SetMaxLevel(size_t level) noexcept { MaxLevel = level; return *this; } - inline TOptions& SetSortFunctor(TCompare cmp) noexcept { + inline TOptions& SetSortFunctor(TCompare cmp) noexcept { Cmp = cmp; return *this; } - TOptions& SetSortByName() noexcept; + TOptions& SetSortByName() noexcept; int FtsOptions; size_t MaxLevel; TCompare Cmp; private: - inline void Init(int opts) noexcept { + inline void Init(int opts) noexcept { FtsOptions = opts | FTS_NOCHDIR; MaxLevel = Max<size_t>(); Cmp = nullptr; } }; - inline TDirIterator(const TString& path, const TOptions& options = TOptions()) + inline TDirIterator(const TString& path, const TOptions& options = TOptions()) : Options_(options) , Path_(path) { @@ -103,7 +103,7 @@ public: private: TOptions Options_; - TString Path_; + TString Path_; char* Trees_[2]; THolder<FTS, TFtsDestroy> FileTree_; }; |