Skip to content

Commit

Permalink
Merge pull request #1212 from FlowFuse/race-condition-copy-docs
Browse files Browse the repository at this point in the history
Ensure dir created before copying files
  • Loading branch information
knolleary authored Oct 5, 2023
2 parents ff54cc0 + 2b5fa10 commit 9515c32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/copy_docs.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ async function copyFiles (src, dest, version) {
if (file.isDirectory()) {
const newSrc = path.join(src,file.name)
const newDest = path.join(dest, file.name)
fs.mkdir(newDest, {recursive: true})
await fs.mkdir(newDest, {recursive: true})
await copyFiles(newSrc, newDest, version)
} else {
const srcFile = path.join(src, file.name)
Expand Down

0 comments on commit 9515c32

Please sign in to comment.