diff options
author | breadcat | 2020-10-26 16:29:13 +0000 |
---|---|---|
committer | breadcat | 2020-10-26 16:29:13 +0000 |
commit | 22fdb4ee4a3543120385b6233d7803c7176af10b (patch) | |
tree | b9bbe278bd0d5d1998878793234b995ae4070173 /content | |
parent | 45781c322dbd9524e129090b8c66958a6daf0a90 (diff) | |
download | blog.minskio.co.uk-22fdb4ee4a3543120385b6233d7803c7176af10b.tar.gz blog.minskio.co.uk-22fdb4ee4a3543120385b6233d7803c7176af10b.tar.bz2 blog.minskio.co.uk-22fdb4ee4a3543120385b6233d7803c7176af10b.zip |
Improve empty folder deletion section
Diffstat (limited to 'content')
-rw-r--r-- | content/posts/notes-on-sorting-photos.md | 4 |
1 files changed, 3 insertions, 1 deletions
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 |