aboutsummaryrefslogtreecommitdiffstats
path: root/util/folder/iterator.h
diff options
context:
space:
mode:
authorVlad Yaroslavlev <vladon@vladon.com>2022-02-10 16:46:25 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:25 +0300
commit344ea37b4a345701ab0e67de2266a1c1bd7baf2d (patch)
tree1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /util/folder/iterator.h
parent706b83ed7de5a473436620367af31fc0ceecde07 (diff)
downloadydb-344ea37b4a345701ab0e67de2266a1c1bd7baf2d.tar.gz
Restoring authorship annotation for Vlad Yaroslavlev <vladon@vladon.com>. Commit 2 of 2.
Diffstat (limited to 'util/folder/iterator.h')
-rw-r--r--util/folder/iterator.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/util/folder/iterator.h b/util/folder/iterator.h
index cce6aee8d4..69e025b9c4 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_;
};