We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b433f3b commit 850dfffCopy full SHA for 850dfff
src/Item.ts
@@ -1,7 +1,7 @@
1
import * as fs from 'fs-extra';
2
import * as path from 'path';
3
4
-import trash = require('trash');
+import trash from 'trash';
5
6
export class FileItem {
7
@@ -44,7 +44,7 @@ export class FileItem {
44
}
45
46
public async remove(useTrash = false): Promise<FileItem> {
47
- await useTrash ? trash([this.path]) : fs.remove(this.path);
+ await useTrash ? trash(this.path) : fs.remove(this.path);
48
49
return this;
50
0 commit comments