Do not crash we we cannot create a directory. Just log it...
This commit is contained in:
1 parent
e9955597b2
commit
713f49230b
1 file changed
+10
-1
@@ -228,7 +228,16 @@ namespace Vocaluxe.Base
|
|||||||
private static void _CreateFolder(string path)
|
private static void _CreateFolder(string path)
|
||||||
{
|
{
|
||||||
if (!Directory.Exists(path))
|
if (!Directory.Exists(path))
|
||||||
Directory.CreateDirectory(path);
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
Directory.CreateDirectory(path);
|
||||||
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
CLog.LogError("Cannot create directory \"" + path + "\": " + e.Message);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user