Updated copy-photos-sorted.ps1

This commit is contained in:
Markus Fleschutz 2024-12-30 11:17:29 +01:00
parent 1a0daf2109
commit e796bae7cb

View File

@ -10,7 +10,7 @@
.EXAMPLE
PS> ./copy-photos-sorted.ps1 D:\iPhone\DCIM C:\MyPhotos
Copying IMG_20240903_134445.jpg to C:\MyPhotos\2024\09 SEP\...
Copied 1 photo (0 skipped) to 📂C:\MyPhotos in 41s.
Copied 1 photo to 📂C:\MyPhotos (0 skipped) in 41s.
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
@ -88,7 +88,7 @@ try {
}
[int]$elapsed = $stopWatch.Elapsed.TotalSeconds
[int]$copied = $files.Count - $skipped
"✅ Copied $copied photos ($skipped skipped) to 📂$targetDir in $($elapsed)s."
"✅ Copied $copied photos to 📂$targetDir ($skipped skipped) in $($elapsed)s."
exit 0 # success
} catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"