|
|
@ -89,7 +89,6 @@ class FileManager extends Plugin { |
|
|
|
file () { |
|
|
|
file () { |
|
|
|
const file = this.currentFile() |
|
|
|
const file = this.currentFile() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!file) throw createError({ code: 'ENOENT', message: 'No file selected' }) |
|
|
|
if (!file) throw createError({ code: 'ENOENT', message: 'No file selected' }) |
|
|
|
return file |
|
|
|
return file |
|
|
|
} |
|
|
|
} |
|
|
@ -235,7 +234,7 @@ class FileManager extends Plugin { |
|
|
|
rmdir (path) { |
|
|
|
rmdir (path) { |
|
|
|
this._handleExists(path, `Cannot remove directory ${path}`) |
|
|
|
this._handleExists(path, `Cannot remove directory ${path}`) |
|
|
|
this._handleIsDir(path, `Cannot remove directory ${path}`) |
|
|
|
this._handleIsDir(path, `Cannot remove directory ${path}`) |
|
|
|
|
|
|
|
|
|
|
|
const provider = this.fileProviderOf(path) |
|
|
|
const provider = this.fileProviderOf(path) |
|
|
|
|
|
|
|
|
|
|
|
return provider.remove(path) |
|
|
|
return provider.remove(path) |
|
|
|