Skip to content

Commit

Permalink
Fix CN mkdir called on grandparent instead of parent (#4418)
Browse files Browse the repository at this point in the history
  • Loading branch information
theoilie committed Dec 2, 2022
1 parent 8b4f444 commit 7d432fa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion creator-node/src/utils/fsUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,8 @@ export async function computeFilePathInDirAndEnsureItExists(
) {
_validateFileAndDir(dirName, fileName)

const parentDirPath = await computeFilePathAndEnsureItExists(dirName)
const parentDirPath = computeFilePath(dirName)
await ensureDirPathExists(parentDirPath)
const absolutePath = path.join(parentDirPath, fileName)
genericLogger.debug(`File path computed, absolutePath=${absolutePath}`)
return absolutePath
Expand Down

0 comments on commit 7d432fa

Please sign in to comment.