Should recurse when searching for empty directories

Bug #294968 reported by Endolith
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
fslint
Fix Released
Undecided
Unassigned
fslint (Ubuntu)
Fix Released
Undecided
Pádraig Brady

Bug Description

Binary package hint: fslint

When you are searching for empty directories, it should also display directories that *would* be empty if other empty directories inside them were deleted.

I use this tool in Windows, for instance:

http://www.jonasjohn.de/lab/red.htm

Revision history for this message
Pádraig Brady (p-draigbrady) wrote :

Good point.
Also there is no point reporting all empty dirs in a hierarchy I think, just the topmost.

Changed in fslint:
assignee: nobody → p-draigbrady
status: New → In Progress
Revision history for this message
Endolith (endolith) wrote :
Revision history for this message
Rolf Leggewie (r0lf) wrote :

should be fairly straight-forward. "find $DIR -type d -empty -delete" does exactly that.

Revision history for this message
Endolith (endolith) wrote :

"Also there is no point reporting all empty dirs in a hierarchy I think, just the topmost."

This is all I personally need, but it might still be a good idea to show the whole hierarchy. Sometimes empty directories have meaning or are necessary.

Revision history for this message
Pádraig Brady (p-draigbrady) wrote :

Yes Rolf it's easy to delete them but not report empty branches.
Anyway the just released 2.40 reports empty branches (the topmost only)

Revision history for this message
Rolf Leggewie (r0lf) wrote :

confirmed fixed for lucid

Changed in fslint (Ubuntu):
status: In Progress → Fix Released
Changed in fslint:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.