blog.minskio.co.uk

Content and theme behind minskio.co.uk
Log | Files | Refs

commit 22fdb4ee4a3543120385b6233d7803c7176af10b
parent 45781c322dbd9524e129090b8c66958a6daf0a90
Author: breadcat <peter@minskio.co.uk>
Date:   Mon, 26 Oct 2020 16:29:13 +0000

Improve empty folder deletion section

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

diff --git 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