Skip to content

Commit

Permalink
use same method for creating directories
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcinVaadin committed Oct 1, 2024
1 parent 80ff0c5 commit a2ff59c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ class WriteBase64FileHandler(project: Project, data: Map<String, Any>) : WriteFi
val resourceRoot = list.find { vfsFile.path.startsWith(it.path) }
val resourceRelativeParentPath = vfsFile.parent.path.substringAfter(resourceRoot!!.path)
val output = CompilerPaths.getModuleOutputPath(module, false)
val resourceOutput = VfsUtil.createDirectoryIfMissing(output + resourceRelativeParentPath)
val resourceOutput = VfsUtil.createDirectories(output + resourceRelativeParentPath)
LOG.info("Copying resource: ${vfsFile.path} to $resourceOutput")
VfsUtil.copyFile(this, vfsFile, resourceOutput!!)
VfsUtil.copyFile(this, vfsFile, resourceOutput)
}
}

0 comments on commit a2ff59c

Please sign in to comment.