[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #50058] [wishlist] -prune a subdir(tree) when a file therein matche
[bug #50058] [wishlist] -prune a subdir(tree) when a file therein matches criteria
Mon, 16 Jan 2017 15:35:53 +0000 (UTC)
Mozilla/5.0 (X11; Linux x86_64; rv:34.0) Gecko/20100101 Firefox/34.0
Follow-up Comment #1, bug #50058 (project findutils):
First, I think you need to define carefully the semantics of your proposal and
consider its implications.
As I read what you wrote, which files/directories are examined by find would
depend on the order in which directories were examined. There is no way to
control that order, and no existing find predicate is affected in that way.
And as you've written the example, it would not behave as desired. Consider
Suppose files A1a and A2 are "recently updated 'certain' files". If find
walks the tree in the order shown, find will not see A2 (and thus attempt to
prune all of A) until after A1a has been examined.
To truly meet the stated requirements, you'll have to scan the entire tree for
updated files and then post-process that list to find the required
Reply to this item at:
Message sent via/by Savannah