mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-11 23:04:52 +09:00
Fix incorrect use of path.parse within create template (#919)
This commit is contained in:
1 parent
6fd4654c21
commit
e6665d0803
1 file changed
+1
-1
@@ -62,7 +62,7 @@ async function copyTemplateFile(src, dst, properties) {
|
||||
});
|
||||
|
||||
// Create folder for output file
|
||||
const dir = path.parse(dst);
|
||||
const { dir } = path.parse(dst);
|
||||
if (dir) {
|
||||
await fs.mkdir(dir, { recursive: true });
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user