1
0
mirror of synced 2025-12-19 18:10:59 -05:00

Await rimraf execution (#50485)

This commit is contained in:
Peter Bengtsson
2024-05-07 13:08:04 -04:00
committed by GitHub
parent 8889524267
commit 223f51ed3c

View File

@@ -139,7 +139,7 @@ async function updateDirectory(
const initialDirectoryListing = await getDirectoryInfo(directory) const initialDirectoryListing = await getDirectoryInfo(directory)
// If there are no children on disk, remove the directory // If there are no children on disk, remove the directory
if (initialDirectoryListing.directoryContents.length === 0 && !rootDirectoryOnly) { if (initialDirectoryListing.directoryContents.length === 0 && !rootDirectoryOnly) {
rimraf(directory) await rimraf(directory)
return return
} }