nix-configs

Personal NixOS and home-manager configuration files
Log | Files | Refs

commit 587d079daa5bceaf530a0b1f2e74dff625f0a854
parent db15d91825827615b55b2a1dcfc944ecde310a74
Author: Peter <peter@minskio.co.uk>
Date:   Fri, 23 Oct 2026 09:12:21 +0100

Remove thumbnails and auto-delete found duplicates

Diffstat:
Mscripts/phone-dump.nix | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/scripts/phone-dump.nix b/scripts/phone-dump.nix @@ -28,6 +28,7 @@ if [ -d "$i" ]; then echo "$i" find "$i" -type f -name '.nomedia*' -delete -print + find "$i" -type d -name '.thumbnails' -prune -exec find {} -mindepth 1 -delete \; ${pkgs.phockup}/bin/phockup "$i" "$destination/" -m fi done @@ -45,7 +46,7 @@ sleep 2s umount "$directory_temp" || fusermount -uz "$directory_temp" echo "Deduplicating photos..." - ${pkgs.jdupes}/bin/jdupes "$destination" -r + ${pkgs.jdupes}/bin/jdupes "$destination" -rdN find "/tmp/tmp.*" -maxdepth 1 -type d -not -path "*/\.*" -empty -delete -print 2>/dev/null else echo "Phone not reachable via ping, exiting" && exit 1