diff --git a/Flow.Launcher.Plugin/SharedCommands/FilesFolders.cs b/Flow.Launcher.Plugin/SharedCommands/FilesFolders.cs index 42a0e0c73..a6cf0755c 100644 --- a/Flow.Launcher.Plugin/SharedCommands/FilesFolders.cs +++ b/Flow.Launcher.Plugin/SharedCommands/FilesFolders.cs @@ -254,7 +254,7 @@ namespace Flow.Launcher.Plugin.SharedCommands /// public static bool PathContains(string parentPath, string subPath, bool allowEqual = false) { - var rel = Path.GetRelativePath(parentPath, subPath); + var rel = Path.GetRelativePath(parentPath.EnsureTrailingSlash(), subPath); return (rel != "." || allowEqual) && rel != ".." && !rel.StartsWith("../")