-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Wrap walkdir::DirEntry in a new type (#436)
* Add -follow support. * tests/find: Serialize find_time() find_time() relies on the working directory, but e.g. delete_on_dot_dir() will temporarily change directories, causing find_time() to fail when run in parallel. * find: Don't use uutils::error::set_exit_code() The global exit code can polute the results of other tests. Link: uutils/coreutils#5777 * find: New WalkEntry wrapper The new type wraps DirEntry when possible, but also lets us pass a valid entry to matchers when walkdir returns a broken symlink error. It also implements a Metadata cache (part of #430). * find: Implement -H, -L, -P flags * find: Fix -follow -samefile * find: Fix -follow -newer * find: Implement -xtype * find: Fix -delete error handling --------- Co-authored-by: hanbings <hanbings@hanbings.io>
- Loading branch information
1 parent
465856c
commit a7a73c3
Showing
29 changed files
with
948 additions
and
356 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.