From 22fdb4ee4a3543120385b6233d7803c7176af10b Mon Sep 17 00:00:00 2001
From: breadcat
Date: Mon, 26 Oct 2020 16:29:13 +0000
Subject: Improve empty folder deletion section

---
 content/posts/notes-on-sorting-photos.md | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

(limited to 'content/posts')

diff --git a/content/posts/notes-on-sorting-photos.md b/content/posts/notes-on-sorting-photos.md
index 22d17a6..6b5cf59 100644
--- a/content/posts/notes-on-sorting-photos.md
+++ b/content/posts/notes-on-sorting-photos.md
@@ -42,7 +42,7 @@ Now we can invoke `phockup` to sort and move the source files to the destination
 phockup phone/DCIM/Camera/ pictures/personal/photos/ -m
 mv phone/Pictures/Screenshots/* pictures/personal/screenshots/ -v
 rm -rf phone/DCIM/.thumbnails
-find phone -maxdepth 2 -empty -delete
+find phone -maxdepth 2 -type d -not -path "*/\.*" -empty -delete
 ```
 I also move my screenshots, as I like these being backed up but I don't care about how they're sorted.
 I also delete unused thumbnails and empty folders, just to keep things tidy.
@@ -55,3 +55,5 @@ jdupes pictures/personal -rd
 ```
 
 And you're done.
+
+* **Edit 2020-10-26:** Improved empty directory deletion section
-- 
cgit v1.2.3