Skip to content

Commit

Permalink
Revert "Embrace rm -fr"
Browse files Browse the repository at this point in the history
This reverts commit 8493691.
  • Loading branch information
hobinjk-ptc committed Oct 11, 2023
1 parent 238b6dd commit 68ae428
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions libraries/utilities.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,7 @@ async function deleteFolderRecursive(folder) {
console.warn(`folder ${folder} is already not present`);
return;
}

await fsProm.rmdir(folder, {recursive: true, force: true});
await fsProm.rmdir(folder, {recursive: true});
}
exports.deleteFolderRecursive = deleteFolderRecursive;

Expand Down Expand Up @@ -589,7 +588,7 @@ exports.updateObject = async function updateObject(objectName, objects) {
exports.deleteObject = async function deleteObject(objectName, objects, objectLookup, _activeHeartbeats, knownObjects, sceneGraph, setAnchors) {
let objectFolderPath = path.join(objectsPath, objectName);
if (await fileExists(objectFolderPath)) {
await fsProm.rmdir(objectFolderPath, {recursive: true, force: true});
await fsProm.rmdir(objectFolderPath, {recursive: true});
}

let objectKey = readObject(objectLookup, objectName);
Expand Down

0 comments on commit 68ae428

Please sign in to comment.