mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[ArchiveTools] Make sure the folder is created
This commit is contained in:
@@ -1336,6 +1336,12 @@ namespace SabreTools.Helper.Tools
|
|||||||
if (romba)
|
if (romba)
|
||||||
{
|
{
|
||||||
outfile = Path.Combine(outDir, Style.GetRombaPath(rom.SHA1));
|
outfile = Path.Combine(outDir, Style.GetRombaPath(rom.SHA1));
|
||||||
|
|
||||||
|
// Check to see if the folder needs to be created
|
||||||
|
if (!Directory.Exists(Path.GetDirectoryName(outfile)))
|
||||||
|
{
|
||||||
|
Directory.CreateDirectory(Path.GetDirectoryName(outfile));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// Otherwise, we're just rebuilding to the main directory
|
// Otherwise, we're just rebuilding to the main directory
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user