aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Core
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2026-06-04 07:48:47 -0500
committerJP Dillingham <jp@dillingham.me>2026-06-04 07:48:47 -0500
commit7e0bc2227cc8593b65e3acd587cbc783e561ca6a (patch)
treed3646d726ac543320a7513387c0342c57809bcda /src/slskd/Core
parent78561f600754241efdf06c0fcee5ffdbdccda1b6 (diff)
parent9a08d5029880c2be008685990f0c83f221ec0e75 (diff)
downloadslskd-7e0bc2227cc8593b65e3acd587cbc783e561ca6a.tar.gz
Merge branch 'destination' of github.com:slskd/slskd into destination
Diffstat (limited to 'src/slskd/Core')
-rw-r--r--src/slskd/Core/Options.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/slskd/Core/Options.cs b/src/slskd/Core/Options.cs
index 9ad1a626..e76f5d2f 100644
--- a/src/slskd/Core/Options.cs
+++ b/src/slskd/Core/Options.cs
@@ -765,7 +765,7 @@ namespace slskd
[Argument(default, "incomplete")]
[EnvironmentVariable("INCOMPLETE_DIR")]
[Description("path where incomplete downloads are saved")]
- [AbsolutePath(platformAgnostic: true)]
+ [AbsolutePath(OperatingSystem.Current)]
[NonTraversingPath]
[DirectoryExists(ensureWriteable: true)]
[RequiresRestart]
@@ -777,7 +777,7 @@ namespace slskd
[Argument('o', "downloads")]
[EnvironmentVariable("DOWNLOADS_DIR")]
[Description("path where downloaded files are saved")]
- [AbsolutePath(platformAgnostic: true)]
+ [AbsolutePath(OperatingSystem.Current)]
[NonTraversingPath]
[DirectoryExists(ensureWriteable: true)]
[RequiresRestart]
@@ -1072,7 +1072,7 @@ namespace slskd
/// <summary>
/// Gets the destination subdirectory for the files in the batch.
/// </summary>
- [RelativePath(platformAgnostic: true)]
+ [RelativePath(OperatingSystem.All)]
[NonTraversingPath]
[String(AllowNull = true, AllowEmpty = false, AllowWhiteSpace = false, MinimumLength = 1)]
public string Subdirectory { get; init; } = "{SOURCE_DIRECTORY}";
@@ -2046,7 +2046,7 @@ namespace slskd
[Argument(default, "http-socket")]
[EnvironmentVariable("HTTP_SOCKET")]
[Description("HTTP listen unix domain socket (UDS) path for web UI")]
- [AbsolutePath(platformAgnostic: false)]
+ [AbsolutePath(OperatingSystem.Current)]
[NonTraversingPath]
[RequiresRestart]
public string Socket { get; init; }