File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed
Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff 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." +
You can’t perform that action at this time.
0 commit comments