From 7ab00d58bf1f018aaa2f3490e52c5fa401c7c449 Mon Sep 17 00:00:00 2001 From: SukkaW Date: Thu, 26 Oct 2023 11:48:11 +0800 Subject: [PATCH] Apply code review suggestions from @RyanZim --- lib/move/move.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/move/move.js b/lib/move/move.js index 0a1f33e8..992bd0fc 100644 --- a/lib/move/move.js +++ b/lib/move/move.js @@ -19,7 +19,7 @@ async function move (src, dest, opts = {}) { const destParent = path.dirname(dest) const parsedParentPath = path.parse(destParent) if (parsedParentPath.root !== destParent) { - await mkdirp(path.dirname(dest)) + await mkdirp(destParent) } return doRename(src, dest, overwrite, isChangingCase)