fix depreciated function

This commit is contained in:
zefie
2022-12-09 14:24:17 -05:00
parent 0999927ff3
commit 371966933e

View File

@@ -213,7 +213,7 @@ class WTVFavorites {
var dir = this.getFolderDir(folder); var dir = this.getFolderDir(folder);
if (dir) { if (dir) {
try { try {
this.fs.rmdirSync(dir, { recursive: true }); this.fs.rm(dir, { recursive: true });
return true; return true;
} catch (e) { } catch (e) {
return false; return false;