mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-02 18:26:27 +13:00
#1950: Add "\" end of folder path to make sure folder is opening instead of file with same name
This commit is contained in:
parent
4a0d71d8bf
commit
8bdfdccbec
1 changed files with 5 additions and 0 deletions
|
@ -421,6 +421,11 @@ public static bool OpenFolder(string folderPath)
|
|||
{
|
||||
if (!string.IsNullOrEmpty(folderPath) && Directory.Exists(folderPath))
|
||||
{
|
||||
if (!folderPath.EndsWith(@"\"))
|
||||
{
|
||||
folderPath += @"\";
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
Process.Start(folderPath);
|
||||
|
|
Loading…
Reference in a new issue