21 #ifndef FXDIRVISITOR_H 22 #define FXDIRVISITOR_H 71 FXuint traverse(
const FXString& path,FXint limit=1000);
74 FXbool
visiting()
const {
return current!=
nullptr; }
77 const FXStat& info()
const;
80 virtual FXuint enter(
const FXString& path);
83 virtual FXuint visit(
const FXString& path);
86 virtual FXuint leave(
const FXString& path);
110 FXuint traverse(
const FXString& path,
const FXString& wild=
"*",FXuint opts=FXDir::MatchAll,FXint depth=1000);
113 virtual FXuint enter(
const FXString& path);
116 virtual FXuint visit(
const FXString& path);
119 virtual FXuint leave(
const FXString& path);
148 FXuint traverse(
const FXString& path,
const FXString& wild=
"*",FXuint opts=FXDir::MatchAll,FXint limit=1000);
163 virtual FXuint enter(
const FXString& path);
166 virtual FXuint visit(
const FXString& path);
169 virtual FXuint leave(
const FXString& path);
FXlong getTotalBytes() const
Return total number of bytes in matching files.
Definition: FXDirVisitor.h:157
Directory visitor walks across all files and directories recursively, starting from the given path...
Definition: FXDirVisitor.h:57
Statistics about a file or directory.
Definition: FXStat.h:31
FXDirVisitor()
Initialize directory visitor.
Definition: FXDirVisitor.h:68
FXlong getTotalFolders() const
Return total number of folders found.
Definition: FXDirVisitor.h:151
Visit directory entries according to flags and matching with wild card pattern, as per FXGlobVisitor ...
Definition: FXDirVisitor.h:132
Visit directory entries according to flags and matching with wild card pattern, with similar matching...
Definition: FXDirVisitor.h:97
FXlong getTotalFiles() const
Return total number of files matched.
Definition: FXDirVisitor.h:154
Definition: FX4Splitter.h:28
FXbool visiting() const
Return true if we're actively visiting directories.
Definition: FXDirVisitor.h:74
FXGlobVisitor()
Construct directory visitor.
Definition: FXDirVisitor.h:107
FXlong getMaximumDepth() const
Return maximum depth of directory tree.
Definition: FXDirVisitor.h:160
FXString provides essential string manipulation capabilities in FOX.
Definition: FXString.h:42