diff options
| author | JP Dillingham <jpdillingham@gmail.com> | 2021-12-04 10:50:55 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-04 10:50:55 -0600 |
| commit | 9ba9581e3de9812db5f0b31e833db1bbc499c7bb (patch) | |
| tree | d95ec2d91afb59d879f9b9ebfb2bc9cd46a5c938 /src/slskd/Options.cs | |
| parent | 6d0d042c9ce584cb76248513b477e905dae6c87c (diff) | |
| parent | 7596778656ec695fb03e106ffe2e03d5ee2caee0 (diff) | |
| download | slskd-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.cs | 4 |
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; |
