mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-01 22:20:52 +00:00
Avoid verifying whether the special folder exists
We don't care at this stage, we'll fail when moving to given location
This commit is contained in:
@@ -127,7 +127,7 @@ internal static class Program {
|
||||
// Aid userspace and replace ~ with user's home directory if possible
|
||||
if (path.Contains('~', StringComparison.Ordinal)) {
|
||||
try {
|
||||
string homeDirectory = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
|
||||
string homeDirectory = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile, Environment.SpecialFolderOption.DoNotVerify);
|
||||
|
||||
if (!string.IsNullOrEmpty(homeDirectory)) {
|
||||
path = path.Replace("~", homeDirectory, StringComparison.Ordinal);
|
||||
|
||||
Reference in New Issue
Block a user