aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2026-05-14 09:13:33 -0500
committerJP Dillingham <jp@dillingham.me>2026-05-14 09:13:33 -0500
commit4f40140e9debd0976b0cabf47a1f2ec02598e3ea (patch)
tree9e2d06fbb8df69d17353543397127fe358113029 /src
parent71b400568e6be399531cb0185c4c9a2dea24a3a5 (diff)
downloadslskd-4f40140e9debd0976b0cabf47a1f2ec02598e3ea.tar.gz
require absolute paths for downloads and incomplete
Diffstat (limited to 'src')
-rw-r--r--src/slskd/Core/Options.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/slskd/Core/Options.cs b/src/slskd/Core/Options.cs
index 2b6adc29..51b3cab1 100644
--- a/src/slskd/Core/Options.cs
+++ b/src/slskd/Core/Options.cs
@@ -767,6 +767,7 @@ namespace slskd
[Argument(default, "incomplete")]
[EnvironmentVariable("INCOMPLETE_DIR")]
[Description("path where incomplete downloads are saved")]
+ [AbsolutePath]
[DirectoryExists(ensureWriteable: true)]
[RequiresRestart]
public string Incomplete { get; init; } = Program.DefaultIncompleteDirectory;
@@ -777,6 +778,7 @@ namespace slskd
[Argument('o', "downloads")]
[EnvironmentVariable("DOWNLOADS_DIR")]
[Description("path where downloaded files are saved")]
+ [AbsolutePath]
[DirectoryExists(ensureWriteable: true)]
[RequiresRestart]
public string Downloads { get; init; } = Program.DefaultDownloadsDirectory;