Skip to content
Snippets Groups Projects
Commit 47dcc3f7 authored by Adam Vandenberg's avatar Adam Vandenberg
Browse files

Cleaner: allow non-empty paths to be pruned from cleaning

parent 1815e6ca
No related branches found
No related tags found
No related merge requests found
......@@ -26,7 +26,13 @@ class Cleaner
# We want post-order traversal, so use a stack.
paths = []
f.prefix.find do |path|
paths << path if path.directory?
if path.directory?
if f.skip_clean? path
Find.prune
else
paths << path
end
end
end
paths.each do |d|
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment