#1950: Add "\" end of folder path to make sure folder is opening instead of file with same name

This commit is contained in:
Jaex 2016-09-30 12:24:08 +03:00
parent 4a0d71d8bf
commit 8bdfdccbec

View file

@ -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);