aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Common/FileSafety.cs
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2026-06-04 08:07:48 -0500
committerJP Dillingham <jp@dillingham.me>2026-06-04 08:07:48 -0500
commite5d362836ce8892487864170abdc31fc032989c5 (patch)
tree087b20a4517c755e56e714d18b42aeb013e66543 /src/slskd/Common/FileSafety.cs
parent7e0bc2227cc8593b65e3acd587cbc783e561ca6a (diff)
downloadslskd-e5d362836ce8892487864170abdc31fc032989c5.tar.gz
fix junk
Diffstat (limited to 'src/slskd/Common/FileSafety.cs')
-rw-r--r--src/slskd/Common/FileSafety.cs5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/slskd/Common/FileSafety.cs b/src/slskd/Common/FileSafety.cs
index b72d3749..a07de6d1 100644
--- a/src/slskd/Common/FileSafety.cs
+++ b/src/slskd/Common/FileSafety.cs
@@ -176,11 +176,8 @@ public static class FileSafety
return false;
}
- Console.WriteLine($"IsPathAbsolute? path: {path}, os: {os}, iswindows? {System.OperatingSystem.IsWindows()}");
-
if (os.HasValue ? os.Value == OperatingSystem.Windows : System.OperatingSystem.IsWindows())
{
- Console.WriteLine("Windows!");
// Windows drive-letter path: X:\ or X:/
// X:foo is relative on windows
if (path.Length >= 3
@@ -200,8 +197,6 @@ public static class FileSafety
return false;
}
- Console.WriteLine("Linux!");
-
// Unix/Linux/macOS absolute paths and UNC paths with forward slashes start with /
if (path.StartsWith('/'))
{