From bf5aa0a5980dba1ed2d128087487375d74e7ed21 Mon Sep 17 00:00:00 2001 From: Markus Fleschutz Date: Mon, 14 Nov 2022 20:14:51 +0100 Subject: [PATCH] Update copy-photos-sorted.ps1 --- Scripts/copy-photos-sorted.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Scripts/copy-photos-sorted.ps1 b/Scripts/copy-photos-sorted.ps1 index 4c510c10..dbc00919 100755 --- a/Scripts/copy-photos-sorted.ps1 +++ b/Scripts/copy-photos-sorted.ps1 @@ -36,7 +36,7 @@ function CopyFile { param([string]$SourcePath, [string]$TargetDir, [int]$Date, [ } $TargetPath = "$TargetDir/$Year/$MonthDir/$Filename" if (test-path "$TargetPath" -pathType leaf) { - "Skipping $Filename: already existing..." + "Skipping $($Filename): already existing..." } else { "Copying $Filename to $Year/$MonthDir..." new-item -path "$TargetDir" -name "$Year" -itemType "directory" -force | out-null @@ -70,7 +70,7 @@ try { $Array = $Filename.split("_") CopyFile "$File" "$TargetDir" $Array[1] "$Filename" } else { - "Skipping $Filename: unknown filename format..." + "Skipping $($Filename): unknown filename format..." } }