aboutsummaryrefslogtreecommitdiffstats
path: root/util/folder/filelist.cpp
diff options
context:
space:
mode:
authormvel <mvel@yandex-team.ru>2022-02-10 16:45:41 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:41 +0300
commit43f5a35593ebc9f6bcea619bb170394ea7ae468e (patch)
treee98df59de24d2ef7c77baed9f41e4875a2fef972 /util/folder/filelist.cpp
parentbd30392c4cc92487950adc375c07adf52da1d592 (diff)
downloadydb-43f5a35593ebc9f6bcea619bb170394ea7ae468e.tar.gz
Restoring authorship annotation for <mvel@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/folder/filelist.cpp')
-rw-r--r--util/folder/filelist.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/util/folder/filelist.cpp b/util/folder/filelist.cpp
index 89810e64bf..b21fcdbf20 100644
--- a/util/folder/filelist.cpp
+++ b/util/folder/filelist.cpp
@@ -5,26 +5,26 @@
#include <util/system/defaults.h>
void TFileEntitiesList::Fill(const TString& dirname, TStringBuf prefix, TStringBuf suffix, int depth, bool sort) {
- TDirIterator::TOptions opts;
- opts.SetMaxLevel(depth);
+ TDirIterator::TOptions opts;
+ opts.SetMaxLevel(depth);
if (sort) {
- opts.SetSortByName();
+ opts.SetSortByName();
}
- TDirIterator dir(dirname, opts);
+ TDirIterator dir(dirname, opts);
Clear();
- size_t dirNameLength = dirname.length();
+ size_t dirNameLength = dirname.length();
while (dirNameLength && (dirname[dirNameLength - 1] == '\\' || dirname[dirNameLength - 1] == '/')) {
--dirNameLength;
}
for (auto file = dir.begin(); file != dir.end(); ++file) {
- if (file->fts_pathlen == file->fts_namelen || file->fts_pathlen <= dirNameLength) {
+ if (file->fts_pathlen == file->fts_namelen || file->fts_pathlen <= dirNameLength) {
continue;
}
- TStringBuf filename = file->fts_path + dirNameLength + 1;
+ TStringBuf filename = file->fts_path + dirNameLength + 1;
if (filename.empty() || !filename.StartsWith(prefix) || !filename.EndsWith(suffix)) {
continue;