From d5a4750da0ab12ab23ce1a518c0a5817c8262068 Mon Sep 17 00:00:00 2001 From: fiso64 Date: Fri, 11 Oct 2024 23:42:38 +0200 Subject: [PATCH] expand tilde in all config paths --- slsk-batchdl/Config.cs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/slsk-batchdl/Config.cs b/slsk-batchdl/Config.cs index c22660c..0e41244 100644 --- a/slsk-batchdl/Config.cs +++ b/slsk-batchdl/Config.cs @@ -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");