From f785cdc0a88069f04e62a6dc968504d3fa8fd49b Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Wed, 27 May 2026 21:56:49 -0500 Subject: add missing ExternalId to DTO --- src/slskd/Transfers/API/DTO/QueueDownloadBatchRequest.cs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/slskd/Transfers/API/DTO/QueueDownloadBatchRequest.cs') diff --git a/src/slskd/Transfers/API/DTO/QueueDownloadBatchRequest.cs b/src/slskd/Transfers/API/DTO/QueueDownloadBatchRequest.cs index c1b7d725..e569df30 100644 --- a/src/slskd/Transfers/API/DTO/QueueDownloadBatchRequest.cs +++ b/src/slskd/Transfers/API/DTO/QueueDownloadBatchRequest.cs @@ -110,4 +110,9 @@ public record EnqueueDownloadBatchOptions [NonTraversingPath] [String(AllowNull = true, AllowEmpty = false, AllowWhiteSpace = false, MinimumLength = 1)] public string Destination { get; init; } + + /// + /// An optional external ID for the batch. + /// + public string ExternalId { get; init; } } \ No newline at end of file -- cgit v1.2.3 From c0212d05af5a9ec22ff5c89a24ea4d5761a48482 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Wed, 3 Jun 2026 23:17:49 -0500 Subject: pass os in attributes --- src/slskd/Core/Options.cs | 8 ++++---- src/slskd/Transfers/API/DTO/QueueDownloadBatchRequest.cs | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src/slskd/Transfers/API/DTO/QueueDownloadBatchRequest.cs') diff --git a/src/slskd/Core/Options.cs b/src/slskd/Core/Options.cs index f2a78247..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] + [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] + [AbsolutePath(OperatingSystem.Current)] [NonTraversingPath] [DirectoryExists(ensureWriteable: true)] [RequiresRestart] @@ -1072,7 +1072,7 @@ namespace slskd /// /// Gets the destination subdirectory for the files in the batch. /// - [RelativePath] + [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] + [AbsolutePath(OperatingSystem.Current)] [NonTraversingPath] [RequiresRestart] public string Socket { get; init; } diff --git a/src/slskd/Transfers/API/DTO/QueueDownloadBatchRequest.cs b/src/slskd/Transfers/API/DTO/QueueDownloadBatchRequest.cs index e569df30..fe34bfec 100644 --- a/src/slskd/Transfers/API/DTO/QueueDownloadBatchRequest.cs +++ b/src/slskd/Transfers/API/DTO/QueueDownloadBatchRequest.cs @@ -106,7 +106,7 @@ public record EnqueueDownloadBatchOptions /// /// The destination directory for the files, relative to the configured download directory. /// - [RelativePath] + [RelativePath(OperatingSystem.All)] [NonTraversingPath] [String(AllowNull = true, AllowEmpty = false, AllowWhiteSpace = false, MinimumLength = 1)] public string Destination { get; init; } -- cgit v1.2.3