From 9d071d2a2cec9a7662a02669488569a017f0ea35 Mon Sep 17 00:00:00 2001 From: Daniel Wilhelm Date: Mon, 13 Feb 2017 21:25:04 -0700 Subject: 8.9 --- zen/file_traverser.h | 94 ++++++++++++++++++++++++++-------------------------- 1 file changed, 47 insertions(+), 47 deletions(-) mode change 100644 => 100755 zen/file_traverser.h (limited to 'zen/file_traverser.h') diff --git a/zen/file_traverser.h b/zen/file_traverser.h old mode 100644 new mode 100755 index 1badddf9..0eb3bbee --- a/zen/file_traverser.h +++ b/zen/file_traverser.h @@ -1,47 +1,47 @@ -// ***************************************************************************** -// * This file is part of the FreeFileSync project. It is distributed under * -// * GNU General Public License: http://www.gnu.org/licenses/gpl-3.0 * -// * Copyright (C) Zenju (zenju AT freefilesync DOT org) - All Rights Reserved * -// ***************************************************************************** - -#ifndef FILER_TRAVERSER_H_127463214871234 -#define FILER_TRAVERSER_H_127463214871234 - -#include -#include -#include "zstring.h" - - -namespace zen -{ -struct FileInfo -{ - Zstring itemName; - Zstring fullPath; - std::uint64_t fileSize; //[bytes] - std::int64_t lastWriteTime; //number of seconds since Jan. 1st 1970 UTC -}; - -struct FolderInfo -{ - Zstring itemName; - Zstring fullPath; -}; - -struct SymlinkInfo -{ - Zstring itemName; - Zstring fullPath; - std::int64_t lastWriteTime; //number of seconds since Jan. 1st 1970 UTC -}; - -//- non-recursive -//- directory path may end with PATH_SEPARATOR -void traverseFolder(const Zstring& dirPath, //noexcept - const std::function& onFile, // - const std::function& onFolder, //optional - const std::function& onSymlink, // - const std::function& onError); // -} - -#endif //FILER_TRAVERSER_H_127463214871234 +// ***************************************************************************** +// * This file is part of the FreeFileSync project. It is distributed under * +// * GNU General Public License: http://www.gnu.org/licenses/gpl-3.0 * +// * Copyright (C) Zenju (zenju AT freefilesync DOT org) - All Rights Reserved * +// ***************************************************************************** + +#ifndef FILER_TRAVERSER_H_127463214871234 +#define FILER_TRAVERSER_H_127463214871234 + +#include +#include +#include "zstring.h" + + +namespace zen +{ +struct FileInfo +{ + Zstring itemName; + Zstring fullPath; + uint64_t fileSize; //[bytes] + int64_t lastWriteTime; //number of seconds since Jan. 1st 1970 UTC +}; + +struct FolderInfo +{ + Zstring itemName; + Zstring fullPath; +}; + +struct SymlinkInfo +{ + Zstring itemName; + Zstring fullPath; + int64_t lastWriteTime; //number of seconds since Jan. 1st 1970 UTC +}; + +//- non-recursive +//- directory path may end with PATH_SEPARATOR +void traverseFolder(const Zstring& dirPath, //noexcept + const std::function& onFile, // + const std::function& onFolder, //optional + const std::function& onSymlink, // + const std::function& onError); // +} + +#endif //FILER_TRAVERSER_H_127463214871234 -- cgit