Skip to content

Commit 3ee3528

Browse files
committed
Revert "Fix unix directory seperator issue"
This reverts commit a3cc5e2.
1 parent a3cc5e2 commit 3ee3528

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

Plugins/Flow.Launcher.Plugin.Explorer/Search/Constants.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ internal static class Constants
3131

3232
internal const string DefaultContentSearchActionKeyword = "doc:";
3333

34-
internal const char UnixDirectorySeparator = '/';
35-
3634
internal const char DirectorySeparator = '\\';
3735

3836
internal const string WindowsIndexingOptions = "srchadmin.dll";

Plugins/Flow.Launcher.Plugin.Explorer/Search/DirectoryInfo/DirectoryInfoSearch.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using Flow.Launcher.Infrastructure.Logger;
1+
using Flow.Launcher.Infrastructure.Logger;
22
using Flow.Launcher.Plugin.SharedCommands;
33
using System;
44
using System.Collections.Generic;
@@ -12,9 +12,6 @@ public static class DirectoryInfoSearch
1212
{
1313
internal static IEnumerable<SearchResult> TopLevelDirectorySearch(Query query, string search, CancellationToken token)
1414
{
15-
// if user uses the unix directory separator, we need to convert it to windows directory separator
16-
search = search.Replace(Constants.UnixDirectorySeparator, Constants.DirectorySeparator);
17-
1815
var criteria = ConstructSearchCriteria(search);
1916

2017
if (search.LastIndexOf(Constants.AllFilesFolderSearchWildcard) >

0 commit comments

Comments
 (0)