1
0
Fork 0
mirror of synced 2024-06-29 11:31:06 +12:00

Fixes from PR comments.

This commit is contained in:
mike12345567 2022-09-14 10:58:01 +01:00
parent 68a8a66bc7
commit e46ddbf65a

View file

@ -73,7 +73,7 @@ exports.moveDirectory = (oldPath, newPath) => {
const files = fs.readdirSync(oldPath) const files = fs.readdirSync(oldPath)
// check any file exists already // check any file exists already
for (let file of files) { for (let file of files) {
if (fs.existsSync(file)) { if (fs.existsSync(join(newPath, file))) {
throw new Error( throw new Error(
"Unable to remove top level directory - some skeleton files already exist." "Unable to remove top level directory - some skeleton files already exist."
) )