add jsdoc comments

pull/5370/head
Joseph Izang 7 months ago
parent ae9af3bb95
commit c12ea724a6
  1. 12
      apps/remix-ide/src/app/files/fileManager.ts

@ -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)

Loading…
Cancel
Save