in sdk/host/src/main/java/org/apache/teaclave/javasdk/host/ExtractLibrary.java [119:130]
private static void checkFileExists(File file) throws IOException {
if (file.isDirectory()) {
if (!file.exists()) {
file.mkdir();
}
} else {
if (file.getParentFile() != null && !file.getParentFile().exists()) {
file.getParentFile().mkdirs();
}
file.createNewFile();
}
}