From b739bb49d307e3d1d058bd3504e43139e260bbf3 Mon Sep 17 00:00:00 2001 From: Vic <10308169+VictoriousRaptor@users.noreply.github.com> Date: Fri, 20 Jan 2023 15:36:14 +0800 Subject: [PATCH] Fix CI test failure --- Flow.Launcher.Plugin/SharedCommands/FilesFolders.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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("../")