summaryrefslogtreecommitdiffstats
path: root/bftw.h
AgeCommit message (Collapse)Author
2017-07-27Re-license under the BSD Zero Clause LicenseTavian Barnes
2017-04-24Release 1.01.0Tavian Barnes
2017-04-08Move bftw_typeflag converters to util.cTavian Barnes
2017-02-08Add support for -x?type with multiple typesTavian Barnes
This functionality is already part of GNU findutils git.
2017-02-05Implement -printf/-fprintfTavian Barnes
Based on a patch by Fangrui Song <i@maskray.me>. Closes #16.
2016-11-24Update some copyright dates.Tavian Barnes
2016-11-21bftw: Make bftw_flags more similar to fts() options.Tavian Barnes
2016-10-02bftw: Add support for some exotic file types, where available.Tavian Barnes
2016-02-14Implement -mount/-xdev.Tavian Barnes
2016-02-13Follow links if appropriate in predicates.Tavian Barnes
2016-02-09Implement -L/-follow.Tavian Barnes
2016-02-04Implement -P and -H.Tavian Barnes
2016-02-04Don't use typedefs to avoid struct/enum tags.Tavian Barnes
2015-09-26Optimize -maxdepth in -depth mode.Tavian Barnes
2015-09-26Don't call stat() until absolutely necessary.Tavian Barnes
This way we only call stat() if we're actually pretty-printing the path, potentially saving lots of calls on paths that don't get printed.
2015-09-26bftw() interface improvements:Tavian Barnes
- Use enums instead of ints where it makes sense - Move the file path inside struct BFTW - Expose a fd and relative path for *at() calls
2015-09-08Add -depth support.Tavian Barnes
The resulting order is fairly weird, as files are still returned in breadth-first order, but directories are returned in a backwards order based on when their reference counts drop to zero. But it's good enough for -delete support.
2015-09-02Print the root file/directory too.Tavian Barnes
2015-08-30Add -type support.Tavian Barnes
Fixes #2.
2015-07-25Recover from errors in diropen().Tavian Barnes
Fixes #4.
2015-07-23bftw: New struct BFTW type to hold file attributes.Tavian Barnes
Like nftw()'s struct FTW. level is needed to implement -mindepth/ -maxdepth.
2015-06-18bftw: Add flags parameter and BFTW_STAT flag.Tavian Barnes
2015-06-14Implement bftw().Tavian Barnes