This commit is contained in:
TheBestPessimist 2023-03-08 12:45:43 +02:00 committed by TheBestPessimist
parent 3cecf5b302
commit 436ec7dd39

View file

@ -143,13 +143,6 @@ namespace Flow.Launcher.Plugin.SharedCommands
return File.Exists(filePath);
}
/*
todo does it make sense to remove Flow.Launcher.Plugin.IPublicAPI.OpenDirectory (used as Context.API.OpenDirectory(path)),
and replace with this function?
todo or the other way around: remove this function and use OpenDirectory
because i don't see the point of having 2 functions which do the same thing
*/
/// <summary>
/// Open a directory window (using the OS's default handler, usually explorer)
/// </summary>
@ -177,15 +170,6 @@ namespace Flow.Launcher.Plugin.SharedCommands
}
}
/// <summary>
/// Open the folder that contains <paramref name="path"/>
/// </summary>
/// <param name="path"></param>
public static void OpenContainingFolder(string path)
{
Process.Start(FileExplorerProgramName, $" /select,\"{path}\"");
}
///<summary>
/// This checks whether a given string is a directory path or network location string.
/// It does not check if location actually exists.