From 70c1f3ad33d7bd1d902d7eca70460b1fd1d52981 Mon Sep 17 00:00:00 2001 From: EzioTheDeadPoet <52624146+EzioTheDeadPoet@users.noreply.github.com> Date: Mon, 2 Oct 2023 16:21:10 +0200 Subject: [PATCH] change folder/directory check logic --- Wabbajack.App.Wpf/View Models/Installers/InstallerVM.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Wabbajack.App.Wpf/View Models/Installers/InstallerVM.cs b/Wabbajack.App.Wpf/View Models/Installers/InstallerVM.cs index 8901b610..3648520a 100644 --- a/Wabbajack.App.Wpf/View Models/Installers/InstallerVM.cs +++ b/Wabbajack.App.Wpf/View Models/Installers/InstallerVM.cs @@ -279,11 +279,11 @@ public class InstallerVM : BackNavigatingVM, IBackNavigatingVM, ICpuStatusVM yield return ErrorResponse.Fail("Mod list source does not exist"); var downloadPath = Installer.DownloadLocation.TargetPath; - if (downloadPath.Depth <= 1) + if (!downloadPath.DirectoryExists()) yield return ErrorResponse.Fail("Download path isn't set to a folder"); var installPath = Installer.Location.TargetPath; - if (installPath.Depth <= 1) + if (!installPath.DirectoryExists()) yield return ErrorResponse.Fail("Install path isn't set to a folder"); if (installPath.InFolder(KnownFolders.Windows)) yield return ErrorResponse.Fail("Don't install modlists into your Windows folder");