|
a/src/utils/fstreewalk.h |
|
b/src/utils/fstreewalk.h |
|
... |
|
... |
37 |
* walk. Options control whether we follow symlinks and whether we recurse
|
37 |
* walk. Options control whether we follow symlinks and whether we recurse
|
38 |
* on subdirectories.
|
38 |
* on subdirectories.
|
39 |
*/
|
39 |
*/
|
40 |
class FsTreeWalker {
|
40 |
class FsTreeWalker {
|
41 |
public:
|
41 |
public:
|
|
|
42 |
// Flags for call to processone(). FtwDirEnter is used when
|
|
|
43 |
// entering a directory. FtwDirReturn is used when returning to it
|
|
|
44 |
// after processing a subdirectory.
|
42 |
enum CbFlag {FtwRegular, FtwDirEnter, FtwDirReturn};
|
45 |
enum CbFlag {FtwRegular, FtwDirEnter, FtwDirReturn};
|
43 |
enum Status {FtwOk=0, FtwError=1, FtwStop=2,
|
46 |
enum Status {FtwOk=0, FtwError=1, FtwStop=2,
|
44 |
FtwStatAll = FtwError|FtwStop};
|
47 |
FtwStatAll = FtwError|FtwStop};
|
45 |
enum Options {FtwOptNone = 0, FtwNoRecurse = 1, FtwFollow = 2};
|
48 |
enum Options {FtwOptNone = 0, FtwNoRecurse = 1, FtwFollow = 2};
|
46 |
|
49 |
|