targetDir="$HOME/media/camera/$(date +%F)"
mkdir -p "$targetDir" ||
{
echo "Failed to create $targetDir"
exit
}
cd "$targetDir" ||
{
echo "Failed to CD to $targetDir"
exit
}
gphoto2 --get-all-files --skip-existing &&
for file in *.JPG *.jpg *.PNG *.png; do
[ -f "$file" ] || continue
exiftran -g -i -a "$file"
done &&
echo "Fotos copied to: $targetDir"
application/octet-stream
This content has been proxied by September (3851b).