Skip to content

Commit 38f0405

Browse files
committed
Revert "Fix valid folder path detection"
This reverts commit 411a021.
1 parent c412346 commit 38f0405

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

Main.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -100,16 +100,11 @@ private bool ValidateFolderPath(string? folderPath)
100100
{
101101
return false;
102102
}
103-
if (!_IsValidPath(folderPath))
103+
if (!_IsValidPath(folderPath) || folderPath.Contains("\""))
104104
{
105105
Context.API.ShowMsgError("Invalid PATH Value", $"\"{folderPath}\" is not a valid folder path - verify that the path is correct and valid");
106106
return false;
107107
}
108-
if (folderPath.Contains("/""))
109-
{
110-
Context.API.ShowMsgError("Invalid PATH Value", "backslashes (\"/\") are not allowed in folder path - replace them with forward slashes.");
111-
return false;
112-
}
113108
if (!IsDirectory(folderPath))
114109
{
115110
Context.API.ShowMsg("WARNING: This is a file path", $"PATH is for folder paths, but \"{folderPath}\" is a file path. File paths are ignored in PATH." +

0 commit comments

Comments
 (0)