-
-
Notifications
You must be signed in to change notification settings - Fork 455
Fix unrecognized path #309
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix unrecognized path #309
Conversation
a30385c to
b426dd1
Compare
|
Actually, I think we shall not use this method in searchmanager to check whether it is like a path, but better to trim the end part after the last \ and use directory.exist |
IsLocationPathString is used in scenario where you just do initial string validation and dont need to have the overhead of checking if the directory actually exists. |
| locationPath = EnvironmentVariables.TranslateEnvironmentVariablePath(locationPath); | ||
|
|
||
| if (!FilesFolders.LocationExists(FilesFolders.ReturnPreviousDirectoryIfIncompleteString(locationPath))) | ||
| if (!FilesFolders.ReturnPreviousDirectoryIfIncompleteString(locationPath).IsLocationPathString()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Forget this situation. Thank you!

fix #308
The reason is
IsLocationPathString(string)unable to recongnizeD:\>*as location string, so that it treat it as a file search.