aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2025-04-05 17:13:47 -0500
committerJP Dillingham <jp@dillingham.me>2025-04-05 17:13:47 -0500
commit7f2cc8a2270340a17a46366e200fe832fd5137c1 (patch)
tree6f4d9e8234f40cd9a97bd31f10921766bc0dc2b8 /src
parent4b56b8eb282a9a32408b2b02c0e758f7bea23af2 (diff)
downloadslskd-7f2cc8a2270340a17a46366e200fe832fd5137c1.tar.gz
ensure file exists if specified
Diffstat (limited to 'src')
-rw-r--r--src/slskd/Core/Options.cs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/slskd/Core/Options.cs b/src/slskd/Core/Options.cs
index 22963eba..cc662444 100644
--- a/src/slskd/Core/Options.cs
+++ b/src/slskd/Core/Options.cs
@@ -1537,6 +1537,7 @@ namespace slskd
[Argument(default, "slsk-picture")]
[EnvironmentVariable("SLSK_PICTURE")]
[Description("user picture for the Soulseek network")]
+ [FileExists(FileAccess.Read)]
public string Picture { get; init; } = null;
/// <summary>