returnglobal.modal('Rename File Failed',`A file or folder ${extractNameFromKey(newFolderPath)} already exists at this location. Please choose a different name.`,'Close',()=>{})
global.modal('Rename File Failed',`A file or folder ${extractNameFromKey(newPath)} already exists at this location. Please choose a different name.`,'Close',()=>{})
}else{
awaitfileManager.rename(oldPath,newPath)
}
}catch(error){
}catch(error){
global.modal('Rename File Failed','Unexpected error while renaming: '+typeoferror==='string'?error:error.message,'Close',async()=>{})
global.modal('Rename File Failed','Unexpected error while renaming: '+typeoferror==='string'?error:error.message,'Close',async()=>{})
returndispatch(displayNotification('Rename File Failed',`A file or folder ${extractNameFromKey(path)} already exists at this location. Please choose a different name.`,'Close',null,()=>{}))
dispatch(displayNotification('Rename File Failed',`A file or folder ${extractNameFromKey(newPath)} already exists at this location. Please choose a different name.`,'Close',null,()=>{}))