summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbreadcat2023-02-28 18:15:41 +0000
committerbreadcat2023-02-28 18:15:41 +0000
commit424bc5d7983d7b0a138c6c8529bb239305633e0e (patch)
tree85ba5cfec3bf797f49f2becc79055f8dd75b84e2
parent1f41fa2858f885cc3a22a6d9bd1af8728c5616d5 (diff)
downloadblog.minskio.co.uk-424bc5d7983d7b0a138c6c8529bb239305633e0e.tar.gz
blog.minskio.co.uk-424bc5d7983d7b0a138c6c8529bb239305633e0e.tar.bz2
blog.minskio.co.uk-424bc5d7983d7b0a138c6c8529bb239305633e0e.zip
Print deleted directories
-rw-r--r--content/posts/notes-on-sorting-photos.md4
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 b9e975b..9f73cbc 100644
--- a/content/posts/notes-on-sorting-photos.md
+++ b/content/posts/notes-on-sorting-photos.md
@@ -1,6 +1,7 @@
---
title: "Notes on sorting Photos"
date: 2019-12-23T11:50:00
+lastmod: 2023-02-19T21:05:00
tags: ["Android", "Formats", "Guides", "Linux", "Media", "Minimalism", "Notes", "Snippets", "Software"]
---
@@ -42,7 +43,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 -type d -not -path "*/\.*" -empty -delete
+find phone -maxdepth 2 -type d -not -path "*/\.*" -empty -delete -print
```
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.
@@ -57,3 +58,4 @@ jdupes pictures/personal -rd
And you're done.
* **Edit 2020-10-26:** Improved empty directory deletion section
+* **Edit 2023-02-19:** Print list of directories removed