summaryrefslogtreecommitdiffstats
path: root/util/folder/filelist.cpp
diff options
context:
space:
mode:
authorivanmorozov <[email protected]>2022-02-10 16:47:33 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:47:33 +0300
commitcba5d9a444e2cfe105f55ccda66cd21d50440017 (patch)
tree79983e83d1a91aebeb1999338090eec69e24cc33 /util/folder/filelist.cpp
parenteb540cc7a103419462d0cc870ca403966e2194c6 (diff)
Restoring authorship annotation for <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'util/folder/filelist.cpp')
-rw-r--r--util/folder/filelist.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/util/folder/filelist.cpp b/util/folder/filelist.cpp
index b21fcdbf208..0f86fef5491 100644
--- a/util/folder/filelist.cpp
+++ b/util/folder/filelist.cpp
@@ -13,15 +13,15 @@ void TFileEntitiesList::Fill(const TString& dirname, TStringBuf prefix, TStringB
TDirIterator dir(dirname, opts);
Clear();
-
+
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) {
- continue;
+ continue;
}
TStringBuf filename = file->fts_path + dirNameLength + 1;