From e6943924cc37ed91cba4fd2e2fcfa4ba0b945c86 Mon Sep 17 00:00:00 2001
From: Stone_Red <56473591+Stone-Red-Code@users.noreply.github.com>
Date: Fri, 27 Jun 2025 13:01:16 +0200
Subject: [PATCH 1/3] Allow files paths without directory as output paths
---
src/ARP-Scanner/Program.cs | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/src/ARP-Scanner/Program.cs b/src/ARP-Scanner/Program.cs
index 8f0fe1b..da716de 100644
--- a/src/ARP-Scanner/Program.cs
+++ b/src/ARP-Scanner/Program.cs
@@ -187,7 +187,10 @@ internal static class Program
try
{
- _ = Directory.CreateDirectory(Path.GetDirectoryName(jsonPath) ?? string.Empty);
+ if (!string.IsNullOrWhiteSpace(Path.GetDirectoryName(jsonPath)))
+ {
+ _ = Directory.CreateDirectory(Path.GetDirectoryName(jsonPath)!);
+ }
string json = JsonSerializer.Serialize(JsonResult.Parse([.. activeHosts], previouslyActiveHosts), jsonSerializerOptions);
File.WriteAllText(jsonPath, json);
@@ -216,7 +219,11 @@ internal static class Program
try
{
- _ = Directory.CreateDirectory(Path.GetDirectoryName(csvPath) ?? string.Empty);
+ if (!string.IsNullOrWhiteSpace(Path.GetDirectoryName(csvPath)))
+ {
+ _ = Directory.CreateDirectory(Path.GetDirectoryName(csvPath)!);
+ }
+
File.WriteAllLines(csvPath, activeHostsTable.Select(row => string.Join(",", row)));
if (!options.Silent)
From a99903eec6c0cf1e150580d9fcc8765a04366eec Mon Sep 17 00:00:00 2001
From: Stone_Red <56473591+Stone-Red-Code@users.noreply.github.com>
Date: Fri, 27 Jun 2025 13:03:38 +0200
Subject: [PATCH 2/3] Update nuget packages
---
src/ARP-Scanner/ARP-Scanner.csproj | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/ARP-Scanner/ARP-Scanner.csproj b/src/ARP-Scanner/ARP-Scanner.csproj
index 6c81d75..b70a174 100644
--- a/src/ARP-Scanner/ARP-Scanner.csproj
+++ b/src/ARP-Scanner/ARP-Scanner.csproj
@@ -12,9 +12,9 @@
-
+
-
+
From e5f69fd256158939857a54ae3fb516f29fe77a7e Mon Sep 17 00:00:00 2001
From: Stone_Red <56473591+Stone-Red-Code@users.noreply.github.com>
Date: Fri, 27 Jun 2025 13:06:17 +0200
Subject: [PATCH 3/3] Update version
---
choco/arp-scanner.nuspec | 2 +-
snap/snapcraft.yaml | 2 +-
src/ARP-Scanner/ARP-Scanner.csproj | 1 +
3 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/choco/arp-scanner.nuspec b/choco/arp-scanner.nuspec
index dd108f3..ab116b4 100644
--- a/choco/arp-scanner.nuspec
+++ b/choco/arp-scanner.nuspec
@@ -40,7 +40,7 @@ enclosed in quotation marks, you should use an editor that supports UTF-8, not t
- 1.1.0.0
+ 1.1.0.20250627