mirror of
https://github.com/KarolS/millfork.git
synced 2025-01-11 12:29:46 +00:00
Fix for output directory creation (#21)
This commit is contained in:
parent
5c96b7e463
commit
b9cdd0ffff
@ -76,6 +76,7 @@ object Main {
|
||||
}
|
||||
|
||||
val outputParent = new File(output).getParentFile
|
||||
if (outputParent ne null) {
|
||||
if (outputParent.exists()) {
|
||||
if (!outputParent.canWrite || !outputParent.isDirectory) {
|
||||
errorReporting.warn(s"The output directory `${outputParent.getAbsolutePath}` cannot be written to.")
|
||||
@ -85,6 +86,7 @@ object Main {
|
||||
errorReporting.warn(s"Failed to create the output directory `${outputParent.getAbsolutePath}``")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
val assOutput = output + ".asm"
|
||||
// val prgOutputs = (platform.outputStyle match {
|
||||
|
Loading…
x
Reference in New Issue
Block a user