Skip to content

Commit a7dbb90

Browse files
committed
create intermediate directories for output file
1 parent e54b512 commit a7dbb90

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Sources/SwiftJavaBootstrapJavaTool/SwiftJavaBootstrapJavaTool.swift

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,13 @@ final class SwiftJavaBootstrapJavaTool {
9595
}
9696

9797
let classpathString = String(classpathOutput.dropFirst(self.SwiftJavaClasspathPrefix.count))
98-
98+
99+
_ = try? FileManager.default.createDirectory(
100+
at: outputDirectoryPath,
101+
withIntermediateDirectories: true,
102+
attributes: nil
103+
)
104+
99105
let classpathOutputURL =
100106
URL(fileURLWithPath: outputDirectoryPath)
101107
.appendingPathComponent("\(moduleName).swift-java.classpath", isDirectory: false)

0 commit comments

Comments
 (0)