filemanager: allow pasting on non-folders to cwd
This commit is contained in:
@@ -349,7 +349,7 @@ export default {
|
||||
async pasteHandler(target) {
|
||||
if (!this.clipboard.files || !this.clipboard.files.length) return;
|
||||
|
||||
const targetPath = target ? sanitize(this.cwd + '/' + target.fileName) : this.cwd;
|
||||
const targetPath = (target && target.isDirectory) ? sanitize(this.cwd + '/' + target.fileName) : this.cwd;
|
||||
|
||||
await this.directoryModel.paste(targetPath, this.clipboard.action, this.clipboard.files);
|
||||
this.clipboard = {};
|
||||
|
||||
Reference in New Issue
Block a user