Closed probonopd closed 1 year ago
Despite having REMOVEDIRS="YES" set in /usr/local/etc/automount.conf, I find that more often than not empty directories are left over in /media.
REMOVEDIRS="YES"
/usr/local/etc/automount.conf
/media
What do you think about using the following? I am using it with great success. It finds all empty directories in /media and deletes them in one step.
find /media -depth 1 -empty -prune -delete 2>/dev/null
I will try that, thanks :)
Updated.
Thanks.
Despite having
REMOVEDIRS="YES"
set in/usr/local/etc/automount.conf
, I find that more often than not empty directories are left over in/media
.What do you think about using the following? I am using it with great success. It finds all empty directories in
/media
and deletes them in one step.