Remove deprecated fs.rmdirSync
This commit is contained in:
@@ -147,7 +147,7 @@ async function deleteAppDir(app, options) {
|
||||
if (safe.error.code !== 'ENOENT') throw new BoxError(BoxError.FS_ERROR, `Error unlinking dir ${appDataDir} : ${safe.error.message}`);
|
||||
}
|
||||
} else {
|
||||
if (!safe.fs.rmdirSync(appDataDir)) {
|
||||
if (!safe.fs.rmSync(appDataDir, { recursive: true })) {
|
||||
if (safe.error.code !== 'ENOENT') throw new BoxError(BoxError.FS_ERROR, `Error removing dir ${appDataDir} : ${safe.error.message}`);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user