diff options
| author | JP Dillingham <jpdillingham@gmail.com> | 2021-11-07 19:02:53 -0600 |
|---|---|---|
| committer | JP Dillingham <jpdillingham@gmail.com> | 2021-11-07 19:02:53 -0600 |
| commit | 583c8d351677a7f0e9b8129eece6f21e6b3ab1cf (patch) | |
| tree | 4bc95eb9351ca3143a8cd1439e17343108c38e1f /src/slskd/Program.cs | |
| parent | 4401a1707b548dcafc67490d305118ebda217719 (diff) | |
| download | slskd-583c8d351677a7f0e9b8129eece6f21e6b3ab1cf.tar.gz | |
verify app directories
Diffstat (limited to 'src/slskd/Program.cs')
| -rw-r--r-- | src/slskd/Program.cs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/slskd/Program.cs b/src/slskd/Program.cs index edecf4e8..db0f58b5 100644 --- a/src/slskd/Program.cs +++ b/src/slskd/Program.cs @@ -1,4 +1,4 @@ -// <copyright file="Program.cs" company="slskd Team"> +// <copyright file="Program.cs" company="slskd Team"> // Copyright (c) slskd Team. All rights reserved. // // This program is free software: you can redistribute it and/or modify @@ -230,6 +230,10 @@ namespace slskd try { VerifyDirectory(OptionsAtStartup.Directories.App, createIfMissing: true, verifyWriteable: true); + VerifyDirectory(Path.Combine(OptionsAtStartup.Directories.App, "config"), createIfMissing: true, verifyWriteable: true); + VerifyDirectory(Path.Combine(OptionsAtStartup.Directories.App, "data"), createIfMissing: true, verifyWriteable: true); + VerifyDirectory(Path.Combine(OptionsAtStartup.Directories.App, "files"), createIfMissing: true, verifyWriteable: true); + VerifyDirectory(OptionsAtStartup.Directories.Incomplete, createIfMissing: true, verifyWriteable: true); VerifyDirectory(OptionsAtStartup.Directories.Downloads, createIfMissing: true, verifyWriteable: true); } |
