From 2fbf73f4ea02abb0e1620a3ada9960d12cab7773 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Brandon=F0=9F=8C=A9=EF=B8=8FH?= Date: Fri, 19 Jul 2024 16:18:26 -0700 Subject: [PATCH 1/6] Adding more universal metadata read/write Abandon EXIF in favor of low-level PropertySystem APIs This ties us to Windows but that's ok. # Conflicts: # Program.cs --- Program.cs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Program.cs b/Program.cs index 4ba290c..f5cb3b3 100644 --- a/Program.cs +++ b/Program.cs @@ -6,6 +6,7 @@ using System.Linq; using System.Threading.Tasks; +using ExifLib; using PowerArgs; @@ -141,8 +142,6 @@ private static void ProcessFile(FileInfo fi, ProgramArgs input, string outputDir { setTimestamp(); } - - } } if (!input.NoMove && !input.Recurse) @@ -222,7 +221,7 @@ void setTimestamp() try { - using var w = ps.Properties.GetPropertyWriter(); + using ShellPropertyWriter w = ps.Properties.GetPropertyWriter(); w.WriteProperty(ps.Properties.System.Photo.DateTaken, timeToUse); } catch { } @@ -236,8 +235,5 @@ void setTimestamp() } } - { - } - private static void PrintUsage() => Console.Write(ArgUsage.GenerateUsageFromTemplate()); } From 56fa904ab998bf375a67aa9227d10e7eabb504e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Brandon=F0=9F=8C=A9=EF=B8=8FH?= Date: Fri, 19 Jul 2024 10:28:04 -0700 Subject: [PATCH 2/6] modify GH workflow to ignore other DLLs when packaging --- .github/workflows/build-and-pack.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-and-pack.yaml b/.github/workflows/build-and-pack.yaml index ad32267..84f2ff0 100644 --- a/.github/workflows/build-and-pack.yaml +++ b/.github/workflows/build-and-pack.yaml @@ -31,7 +31,7 @@ jobs: uses: actions/upload-artifact@v4 with: name: binaries - path: pub + path: pub/FileSorter.* choco-pack: needs: build runs-on: windows-latest From 3b7fef6f3fc09183af7cb1c7d49de5f756e84c2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Brandon=F0=9F=8C=A9=EF=B8=8FH?= Date: Fri, 19 Jul 2024 10:29:26 -0700 Subject: [PATCH 3/6] remove choco/ from sln explorer --- FileSorter.csproj | 49 ++++++++++++++++++++++++++--------------------- 1 file changed, 27 insertions(+), 22 deletions(-) diff --git a/FileSorter.csproj b/FileSorter.csproj index d2c80b4..9a88a63 100644 --- a/FileSorter.csproj +++ b/FileSorter.csproj @@ -1,26 +1,31 @@ - + - - Exe - net8.0-windows - FileSorter.Program - false - 0.0.1 - bc3tech - BC3 Technologies - Sorts files into datetime subfolders, optionally parsing EXIF data of photos to get accurate date/time information. - (c) BC3 Technologies - https://github.com/bc3tech/filesorter - https://github.com/bc3tech/filesorter - GitHub - filesorter - 0.0.1 - en-US - + + Exe + net8.0-windows + FileSorter.Program + false + 0.0.1 + bc3tech + BC3 Technologies + Sorts files into datetime subfolders, optionally parsing EXIF data of photos to get accurate date/time information. + (c) BC3 Technologies + https://github.com/bc3tech/filesorter + https://github.com/bc3tech/filesorter + GitHub + filesorter + 0.0.1 + en-US + - - - - + + + + + + + + + From bf9ea4512405bb2bb9e92ddf1df03ed5325eb25b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Brandon=F0=9F=8C=A9=EF=B8=8FH?= Date: Mon, 25 Aug 2025 12:51:57 -0700 Subject: [PATCH 4/6] fix codeowners file --- .github/CODEOWNERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 9d7347b..b36a566 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1 +1 @@ -* bc3tech \ No newline at end of file +* @bc3tech \ No newline at end of file From 8a8da30d24385b1944a23eeca26052da2f5f5045 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Brandon=F0=9F=8C=A9=EF=B8=8FH?= Date: Mon, 25 Aug 2025 13:04:06 -0700 Subject: [PATCH 5/6] Update WindowsAPICodePack --- .gitignore | 3 ++- FileSorter.csproj | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index cb54884..a7772ea 100644 --- a/.gitignore +++ b/.gitignore @@ -340,4 +340,5 @@ ASALocalRun/ healthchecksdb # Chocolatey output -*.nupkg \ No newline at end of file +*.nupkg +/pub diff --git a/FileSorter.csproj b/FileSorter.csproj index 9a88a63..5ae48f1 100644 --- a/FileSorter.csproj +++ b/FileSorter.csproj @@ -26,6 +26,6 @@ - + From 91e4dcd274a36fec8d4c42c9819723d5f75ed08a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Brandon=F0=9F=8C=A9=EF=B8=8FH?= Date: Mon, 25 Aug 2025 15:37:24 -0700 Subject: [PATCH 6/6] fix build --- Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Program.cs b/Program.cs index f5cb3b3..f5345f3 100644 --- a/Program.cs +++ b/Program.cs @@ -6,7 +6,7 @@ using System.Linq; using System.Threading.Tasks; -using ExifLib; +using Microsoft.WindowsAPICodePack.Shell.PropertySystem; using PowerArgs;