summaryrefslogtreecommitdiff
path: root/zen/file_traverser.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:22:55 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:22:55 +0200
commitc4182431ac7d9d306fdd2267e082fa4cec6fec2c (patch)
tree865cca543c062b7af2586f85cee19f9af4e7614d /zen/file_traverser.h
parent5.11 (diff)
downloadFreeFileSync-c4182431ac7d9d306fdd2267e082fa4cec6fec2c.tar.gz
FreeFileSync-c4182431ac7d9d306fdd2267e082fa4cec6fec2c.tar.bz2
FreeFileSync-c4182431ac7d9d306fdd2267e082fa4cec6fec2c.zip
5.12
Diffstat (limited to 'zen/file_traverser.h')
-rw-r--r--zen/file_traverser.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/zen/file_traverser.h b/zen/file_traverser.h
index d8a99a4d..c8ef6550 100644
--- a/zen/file_traverser.h
+++ b/zen/file_traverser.h
@@ -12,7 +12,6 @@
#include "int64.h"
#include "file_id_def.h"
-
//advanced file traverser returning metadata and hierarchical information on files and directories
namespace zen
@@ -25,8 +24,8 @@ struct TraverseCallback
{
UInt64 fileSize; //unit: bytes!
Int64 lastWriteTimeRaw; //number of seconds since Jan. 1st 1970 UTC
- FileId id; //optional: may be initial!
- //bool isFollowedSymlink;
+ FileId id; //optional: initial if not supported!
+ //std::unique_ptr<SymlinkInfo> symlinkInfo; //only filled if file is dereferenced symlink
};
struct SymlinkInfo
@@ -48,7 +47,6 @@ struct TraverseCallback
ON_ERROR_IGNORE
};
- //overwrite these virtual methods
virtual std::shared_ptr<TraverseCallback> //nullptr: ignore directory, non-nullptr: traverse into using the (new) callback
/**/ onDir (const Zchar* shortName, const Zstring& fullName) = 0;
virtual void onFile (const Zchar* shortName, const Zstring& fullName, const FileInfo& details) = 0;
bgstack15