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:
parent
0474d1c0d9
commit
d5a4750da0
1 changed files with 6 additions and 4 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue