Test if the rename has taken place and only if it has, call updateFileManagerList etc. If it hasn't set the renamed var to false. If renamed var is false, show the improved error message (gives note on permissions).