summaryrefslogtreecommitdiff
path: root/zen/file_traverser.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <shieldwed@outlook.com>2017-01-09 10:54:11 +0100
committerDaniel Wilhelm <shieldwed@outlook.com>2017-01-09 10:54:11 +0100
commit6011596a2f247bde24095e985f6e2547e4b191ef (patch)
tree296003a2c8952f41b2998653ba02911ba2b83b0a /zen/file_traverser.h
parent8.7 (diff)
downloadFreeFileSync-6011596a2f247bde24095e985f6e2547e4b191ef.tar.gz
FreeFileSync-6011596a2f247bde24095e985f6e2547e4b191ef.tar.bz2
FreeFileSync-6011596a2f247bde24095e985f6e2547e4b191ef.zip
8.8
Diffstat (limited to 'zen/file_traverser.h')
-rw-r--r--zen/file_traverser.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/zen/file_traverser.h b/zen/file_traverser.h
index 5fffe0e2..1badddf9 100644
--- a/zen/file_traverser.h
+++ b/zen/file_traverser.h
@@ -16,19 +16,22 @@ namespace zen
{
struct FileInfo
{
- const Zstring& fullPath;
+ Zstring itemName;
+ Zstring fullPath;
std::uint64_t fileSize; //[bytes]
std::int64_t lastWriteTime; //number of seconds since Jan. 1st 1970 UTC
};
-struct DirInfo
+struct FolderInfo
{
- const Zstring& fullPath;
+ Zstring itemName;
+ Zstring fullPath;
};
struct SymlinkInfo
{
- const Zstring& fullPath;
+ Zstring itemName;
+ Zstring fullPath;
std::int64_t lastWriteTime; //number of seconds since Jan. 1st 1970 UTC
};
@@ -36,8 +39,8 @@ struct SymlinkInfo
//- directory path may end with PATH_SEPARATOR
void traverseFolder(const Zstring& dirPath, //noexcept
const std::function<void (const FileInfo& fi)>& onFile, //
- const std::function<void (const DirInfo& di)>& onDir, //optional
- const std::function<void (const SymlinkInfo& si)>& onLink, //
+ const std::function<void (const FolderInfo& fi)>& onFolder, //optional
+ const std::function<void (const SymlinkInfo& si)>& onSymlink, //
const std::function<void (const std::wstring& errorMsg)>& onError); //
}
bgstack15