[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #50058] [wishlist] -prune a subdir(tree) when a file therein matche
From: |
Dale Worley |
Subject: |
[bug #50058] [wishlist] -prune a subdir(tree) when a file therein matches criteria |
Date: |
Mon, 16 Jan 2017 15:35:53 +0000 (UTC) |
User-agent: |
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
this structure:
A
A1
A1a
A1b
A2
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
directories.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?50058>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/