add jsdoc comments

pull/4767/head
Joseph Izang 7 months ago
parent a0533a1f56
commit a26da45901
  1. 12
      apps/remix-ide/src/app/files/fileManager.ts

@ -927,6 +927,12 @@ class FileManager extends Plugin {
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) {
try {
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) {
try {
src = this.normalize(src)

Loading…
Cancel
Save