diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2019-04-15 10:21:22 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2019-04-20 14:18:03 -0400 |
commit | a559ffac8c65f469adefcd2d4a5c41790d7e6d05 (patch) | |
tree | b2bacf4764570d755362ea372804aa84188fc8c4 /eval.c | |
parent | 60020d1f52d032c495785802c44226a63a217737 (diff) | |
download | bfs-queue-files.tar.xz |
[WIP] bftw: Push all files onto the queue before visiting themqueue-files
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -1206,7 +1206,6 @@ static const char *dump_bftw_visit(enum bftw_visit visit) { static const char *dump_bftw_action(enum bftw_action action) { static const char *actions[] = { DUMP_BFTW_MAP(BFTW_CONTINUE), - DUMP_BFTW_MAP(BFTW_SKIP_SIBLINGS), DUMP_BFTW_MAP(BFTW_SKIP_SUBTREE), DUMP_BFTW_MAP(BFTW_STOP), }; @@ -1273,11 +1272,8 @@ static enum bftw_action cmdline_callback(struct BFTW *ftwbuf, void *ptr) { state.action = BFTW_SKIP_SUBTREE; } - // In -depth mode, only handle directories on the BFTW_POST visit enum bftw_visit expected_visit = BFTW_PRE; - if ((cmdline->flags & BFTW_DEPTH) - && ftwbuf->typeflag == BFTW_DIR - && ftwbuf->depth < cmdline->maxdepth) { + if ((cmdline->flags & BFTW_DEPTH) && ftwbuf->depth < cmdline->maxdepth) { expected_visit = BFTW_POST; } |