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();
|
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");
|
||||||
|
|
Loading…
Reference in a new issue