Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
|
Visit directory entries according to flags and matching with wild card pattern, as per FXGlobVisitor above. More...
#include <FXDirVisitor.h>
Public Member Functions | |
FXGlobCountVisitor () | |
Create new glob counting visitor. | |
FXuint | traverse (const FXString &path, const FXString &wild="*", FXuint opts=FXDir::MatchAll, FXint limit=1000) |
Start traversal of path. | |
FXlong | getTotalFolders () const |
Return total number of folders found. | |
FXlong | getTotalFiles () const |
Return total number of files matched. | |
FXlong | getTotalBytes () const |
Return total number of bytes in matching files. | |
FXlong | getMaximumDepth () const |
Return maximum depth of directory tree. | |
virtual FXuint | enter (const FXString &path) |
Count directories. | |
virtual FXuint | visit (const FXString &path) |
Count files. | |
virtual FXuint | leave (const FXString &path) |
Count depth. | |
virtual | ~FXGlobCountVisitor () |
Destructor. | |
Public Member Functions inherited from FX::FXGlobVisitor | |
FXGlobVisitor () | |
Construct directory visitor. | |
FXuint | traverse (const FXString &path, const FXString &wild="*", FXuint opts=FXDir::MatchAll, FXint depth=1000) |
Start traversal at given path. | |
virtual | ~FXGlobVisitor () |
Destructor. | |
Public Member Functions inherited from FX::FXDirVisitor | |
FXDirVisitor () | |
Initialize directory visitor. | |
FXuint | traverse (const FXString &path, FXint limit=1000) |
Start traversal at given path. | |
FXbool | visiting () const |
Return true if we're actively visiting directories. | |
const FXStat & | info () const |
Return stats on current file or directory. | |
virtual | ~FXDirVisitor () |
Destructor. | |
Visit directory entries according to flags and matching with wild card pattern, as per FXGlobVisitor above.
In addition, count numbers of items visited, with an eye toward setting progress bar boundaries.
Copyright © 1997-2022 Jeroen van der Zijp |