diff options
| author | pn04 <33034498+pn04@users.noreply.github.com> | 2022-10-13 00:36:56 +0530 |
|---|---|---|
| committer | pn04 <33034498+pn04@users.noreply.github.com> | 2022-10-13 00:36:56 +0530 |
| commit | 66523b27f6120836ba82cfb6f56b679d7b37f58a (patch) | |
| tree | a6a508162642409548ed0f928bbde36c68deb9d5 /src/slskd/Core | |
| parent | dddcc1314d2260a21fe62e61b92f446a15357b04 (diff) | |
| download | slskd-66523b27f6120836ba82cfb6f56b679d7b37f58a.tar.gz | |
added a DirectoryIsRelative validation attribute
*added DirectoryIsRelative attribute to check if a directory is relative
*added DirectoryIsRelative to ContentPath
*added unit test cases
Diffstat (limited to 'src/slskd/Core')
| -rw-r--r-- | src/slskd/Core/Options.cs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/slskd/Core/Options.cs b/src/slskd/Core/Options.cs index 4c146d32..484a514b 100644 --- a/src/slskd/Core/Options.cs +++ b/src/slskd/Core/Options.cs @@ -1167,6 +1167,7 @@ namespace slskd [Description("path to static web content")] [StringLength(255, MinimumLength = 1)] [DirectoryExists] + [DirectoryIsRelative] [RequiresRestart] public string ContentPath { get; init; } = "wwwroot"; |
