A blank directory can cause issues

This commit is contained in:
Matt Nadareski
2016-05-12 10:24:42 -07:00
parent 5224b1dabe
commit ad7e8dceea

View File

@@ -44,6 +44,12 @@ namespace SabreTools
return false; return false;
} }
// If it's empty, use the current folder
if (_outdir.Trim() == "")
{
_outdir = Environment.CurrentDirectory;
}
// If the output directory doesn't exist, create it // If the output directory doesn't exist, create it
if (!Directory.Exists(_outdir)) if (!Directory.Exists(_outdir))
{ {