|
|
@ -927,6 +927,12 @@ class FileManager extends Plugin { |
|
|
|
return exists |
|
|
|
return exists |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* Check if a file can be moved |
|
|
|
|
|
|
|
* @param src source file |
|
|
|
|
|
|
|
* @param dest destination file |
|
|
|
|
|
|
|
* @returns {boolean} true if the file is allowed to be moved |
|
|
|
|
|
|
|
*/ |
|
|
|
async moveFileIsAllowed (src: string, dest: string) { |
|
|
|
async moveFileIsAllowed (src: string, dest: string) { |
|
|
|
try { |
|
|
|
try { |
|
|
|
src = this.normalize(src) |
|
|
|
src = this.normalize(src) |
|
|
@ -949,6 +955,12 @@ class FileManager extends Plugin { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* Check if a folder can be moved |
|
|
|
|
|
|
|
* @param src source folder |
|
|
|
|
|
|
|
* @param dest destination folder |
|
|
|
|
|
|
|
* @returns {boolean} true if the folder is allowed to be moved |
|
|
|
|
|
|
|
*/ |
|
|
|
async moveDirIsAllowed (src: string, dest: string) { |
|
|
|
async moveDirIsAllowed (src: string, dest: string) { |
|
|
|
try { |
|
|
|
try { |
|
|
|
src = this.normalize(src) |
|
|
|
src = this.normalize(src) |
|
|
|