mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-24 01:25:37 -05:00
Remove fs.promises.rmdir (#21356)
* Remove fs.promises.rmdir * Add force flag
This commit is contained in:
@@ -964,7 +964,7 @@ export class Project implements ISqlProject {
|
||||
const toDeleteFolders: FileProjectEntry[] = this._files.filter(x => x.fsUri.fsPath.startsWith(entry.fsUri.fsPath) && x.type === EntryType.Folder);
|
||||
|
||||
await Promise.all(toDeleteFiles.map(x => fs.unlink(x.fsUri.fsPath)));
|
||||
await Promise.all(toDeleteFolders.map(x => fs.rmdir(x.fsUri.fsPath, { recursive: true })));
|
||||
await Promise.all(toDeleteFolders.map(x => fs.rm(x.fsUri.fsPath, { recursive: true, force: true })));
|
||||
|
||||
await this.exclude(entry);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user