mirror of
https://github.com/KarolS/millfork.git
synced 2024-12-24 15:29:23 +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
|
val outputParent = new File(output).getParentFile
|
||||||
|
if (outputParent ne null) {
|
||||||
if (outputParent.exists()) {
|
if (outputParent.exists()) {
|
||||||
if (!outputParent.canWrite || !outputParent.isDirectory) {
|
if (!outputParent.canWrite || !outputParent.isDirectory) {
|
||||||
errorReporting.warn(s"The output directory `${outputParent.getAbsolutePath}` cannot be written to.")
|
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}``")
|
errorReporting.warn(s"Failed to create the output directory `${outputParent.getAbsolutePath}``")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
val assOutput = output + ".asm"
|
val assOutput = output + ".asm"
|
||||||
// val prgOutputs = (platform.outputStyle match {
|
// val prgOutputs = (platform.outputStyle match {
|
||||||
|
Loading…
Reference in New Issue
Block a user