fs.rmdirSync { recursive: true } is deprecated
This commit is contained in:
@@ -225,7 +225,7 @@ async function remove(config, remotePath) {
|
||||
if (stat.isFile()) {
|
||||
if (!safe.fs.unlinkSync(fullRemotePath)) throw new BoxError(BoxError.EXTERNAL_ERROR, safe.error.message);
|
||||
} else if (stat.isDirectory()) {
|
||||
if (!safe.fs.rmdirSync(fullRemotePath, { recursive: false })) throw new BoxError(BoxError.EXTERNAL_ERROR, safe.error.message);
|
||||
if (!safe.fs.rmdirSync(fullRemotePath)) throw new BoxError(BoxError.EXTERNAL_ERROR, safe.error.message);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user