aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2022-05-04 21:08:58 -0500
committerJP Dillingham <jp@dillingham.me>2022-05-04 21:08:58 -0500
commite4762962e0849ef768519a7e053cd2cafc7973b9 (patch)
tree37f3b7507c3edcb97e6fe52a529df786ca1aac51 /src
parentcd2a45dcc097d1a5a3ec299a644a630acd63158d (diff)
downloadslskd-e4762962e0849ef768519a7e053cd2cafc7973b9.tar.gz
check that the content path exists
Diffstat (limited to 'src')
-rw-r--r--src/slskd/Options.cs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/slskd/Options.cs b/src/slskd/Options.cs
index 00ae670e..a1493ca4 100644
--- a/src/slskd/Options.cs
+++ b/src/slskd/Options.cs
@@ -965,6 +965,7 @@ namespace slskd
[EnvironmentVariable("CONTENT_PATH")]
[Description("path to static web content")]
[StringLength(255, MinimumLength = 1)]
+ [DirectoryExists]
[RequiresRestart]
public string ContentPath { get; init; } = "wwwroot";