mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Fix crash on invalid chars in path
This commit is contained in:
parent
c589978e84
commit
58801f8fb6
1 changed files with 7 additions and 1 deletions
|
|
@ -136,7 +136,13 @@ namespace Wox.Plugin.SystemPlugins.FileSystem
|
|||
}
|
||||
|
||||
// change to search in current directory
|
||||
var parentDir = Path.GetDirectoryName(input);
|
||||
string parentDir = null;
|
||||
try
|
||||
{
|
||||
parentDir = Path.GetDirectoryName(input);
|
||||
}
|
||||
catch {}
|
||||
|
||||
if (!string.IsNullOrEmpty(parentDir) && results.Count == 0)
|
||||
{
|
||||
parentDir = parentDir.TrimEnd('\\', '/');
|
||||
|
|
|
|||
Loading…
Reference in a new issue