aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Options.cs
diff options
context:
space:
mode:
authorJP Dillingham <jpdillingham@gmail.com>2021-12-04 10:50:55 -0600
committerGitHub <noreply@github.com>2021-12-04 10:50:55 -0600
commit9ba9581e3de9812db5f0b31e833db1bbc499c7bb (patch)
treed95ec2d91afb59d879f9b9ebfb2bc9cd46a5c938 /src/slskd/Options.cs
parent6d0d042c9ce584cb76248513b477e905dae6c87c (diff)
parent7596778656ec695fb03e106ffe2e03d5ee2caee0 (diff)
downloadslskd-9ba9581e3de9812db5f0b31e833db1bbc499c7bb.tar.gz
Merge pull request #294 from slskd/verify-writeable
Verify that downloads and incomplete directories are writeable when configuration changes
Diffstat (limited to 'src/slskd/Options.cs')
-rw-r--r--src/slskd/Options.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/slskd/Options.cs b/src/slskd/Options.cs
index 7546449f..15b954f7 100644
--- a/src/slskd/Options.cs
+++ b/src/slskd/Options.cs
@@ -273,7 +273,7 @@ namespace slskd
[Argument(default, "incomplete")]
[EnvironmentVariable("INCOMPLETE_DIR")]
[Description("path where incomplete downloads are saved")]
- [DirectoryExists]
+ [DirectoryExists(ensureWriteable: true)]
[RequiresRestart]
public string Incomplete { get; private set; } = Program.DefaultIncompleteDirectory;
@@ -283,7 +283,7 @@ namespace slskd
[Argument('o', "downloads")]
[EnvironmentVariable("DOWNLOADS_DIR")]
[Description("path where downloaded files are saved")]
- [DirectoryExists]
+ [DirectoryExists(ensureWriteable: true)]
[RequiresRestart]
public string Downloads { get; private set; } = Program.DefaultDownloadsDirectory;