1
0
Fork 0
mirror of https://github.com/fiso64/slsk-batchdl.git synced 2024-12-22 14:32:40 +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(); nameFormat = nameFormat.Trim();
parentDir = Utils.ExpandUser(parentDir); confPath = Path.GetFullPath(Utils.ExpandUser(confPath));
m3uFilePath = Utils.ExpandUser(m3uFilePath); parentDir = Path.GetFullPath(Utils.ExpandUser(parentDir));
skipMusicDir = Utils.ExpandUser(skipMusicDir); m3uFilePath = Path.GetFullPath(Utils.ExpandUser(m3uFilePath));
failedAlbumPath = Utils.ExpandUser(failedAlbumPath); indexFilePath = Path.GetFullPath(Utils.ExpandUser(indexFilePath));
skipMusicDir = Path.GetFullPath(Utils.ExpandUser(skipMusicDir));
failedAlbumPath = Path.GetFullPath(Utils.ExpandUser(failedAlbumPath));
if (failedAlbumPath.Length == 0) if (failedAlbumPath.Length == 0)
failedAlbumPath = Path.Join(parentDir, "failed"); failedAlbumPath = Path.Join(parentDir, "failed");