Skip to content

Conversation

@taooceros
Copy link
Member

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

@taooceros taooceros force-pushed the ExplorerDirectorySearchWithIndexFix branch from a30385c to b426dd1 Compare January 22, 2021 08:19
@taooceros taooceros marked this pull request as ready for review January 22, 2021 08:19
@taooceros
Copy link
Member Author

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

@taooceros taooceros added this to the 1.7.0 milestone Jan 23, 2021
@jjw24 jjw24 added the bug Something isn't working label Jan 24, 2021
@jjw24
Copy link
Member

jjw24 commented Jan 24, 2021

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())
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reverting this change because if we dont check whether location exists, it will error when we do directory search:
image

Copy link
Member Author

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!

jjw24
jjw24 previously approved these changes Jan 24, 2021
@jjw24 jjw24 merged commit d0af7a1 into Flow-Launcher:dev Jan 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unable to recognize first level directory with search wildcard ">" or "*"

2 participants