summaryrefslogtreecommitdiff
path: root/zen/file_traverser.h
diff options
context:
space:
mode:
Diffstat (limited to 'zen/file_traverser.h')
-rw-r--r--zen/file_traverser.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/zen/file_traverser.h b/zen/file_traverser.h
index 8bd32f2c..8903548d 100644
--- a/zen/file_traverser.h
+++ b/zen/file_traverser.h
@@ -8,6 +8,7 @@
#define FILER_TRAVERSER_H_127463214871234
#include <functional>
+#include "file_error.h"
#include "file_path.h"
namespace zen
@@ -34,12 +35,10 @@ struct SymlinkInfo
};
//- non-recursive
-//- 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 FolderInfo& fi)>& onFolder, //optional
- const std::function<void(const SymlinkInfo& si)>& onSymlink, //
- const std::function<void(const std::wstring& errorMsg)>& onError); //
+void traverseFolder(const Zstring& dirPath,
+ const std::function<void(const FileInfo& fi)>& onFile, /*optional*/
+ const std::function<void(const FolderInfo& fi)>& onFolder,/*optional*/
+ const std::function<void(const SymlinkInfo& si)>& onSymlink/*optional*/); //throw FileError
}
#endif //FILER_TRAVERSER_H_127463214871234
bgstack15