From 98dd5ca2b52110c61008704ea17ee4c08113e405 Mon Sep 17 00:00:00 2001 From: Simon L Date: Sat, 5 Feb 2022 21:15:35 +0100 Subject: [PATCH] smbserver - also delete empty folders when emptying the recycle bin (#2222) Signed-off-by: szaimen --- not-supported/smbserver.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/not-supported/smbserver.sh b/not-supported/smbserver.sh index 992ac645..4cf3b524 100644 --- a/not-supported/smbserver.sh +++ b/not-supported/smbserver.sh @@ -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))