mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-03 02:36:50 +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 (!string.IsNullOrEmpty(folderPath) && Directory.Exists(folderPath))
|
||||||
{
|
{
|
||||||
|
if (!folderPath.EndsWith(@"\"))
|
||||||
|
{
|
||||||
|
folderPath += @"\";
|
||||||
|
}
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
Process.Start(folderPath);
|
Process.Start(folderPath);
|
||||||
|
|
Loading…
Reference in a new issue