1
0
Fork 0
mirror of https://github.com/fiso64/slsk-batchdl.git synced 2024-12-22 06:22:41 +00:00

expand tilde in all config paths

This commit is contained in:
fiso64 2024-10-11 23:42:38 +02:00
parent 0474d1c0d9
commit d5a4750da0

View file

@ -245,10 +245,12 @@ public class Config
nameFormat = nameFormat.Trim();
parentDir = Utils.ExpandUser(parentDir);
m3uFilePath = Utils.ExpandUser(m3uFilePath);
skipMusicDir = Utils.ExpandUser(skipMusicDir);
failedAlbumPath = Utils.ExpandUser(failedAlbumPath);
confPath = Path.GetFullPath(Utils.ExpandUser(confPath));
parentDir = Path.GetFullPath(Utils.ExpandUser(parentDir));
m3uFilePath = Path.GetFullPath(Utils.ExpandUser(m3uFilePath));
indexFilePath = Path.GetFullPath(Utils.ExpandUser(indexFilePath));
skipMusicDir = Path.GetFullPath(Utils.ExpandUser(skipMusicDir));
failedAlbumPath = Path.GetFullPath(Utils.ExpandUser(failedAlbumPath));
if (failedAlbumPath.Length == 0)
failedAlbumPath = Path.Join(parentDir, "failed");