mirror of
https://github.com/nextcloud/vm.git
synced 2025-10-26 11:27:32 +00:00
smbserver - also delete empty folders when emptying the recycle bin (#2222)
Signed-off-by: szaimen <szaimen@e.mail.de>
This commit is contained in:
parent
1c346036ee
commit
98dd5ca2b5
@ -1370,6 +1370,7 @@ do
|
||||
if [ -d "\$SMB_PATH" ] && [ -d "\$SMB_PATH/.recycle/" ]
|
||||
then
|
||||
find "\$SMB_PATH/.recycle/" -type f -atime +2 -delete
|
||||
find "\$SMB_PATH/.recycle/" -empty -delete
|
||||
fi
|
||||
fi
|
||||
count=\$((count+1))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user