[client] Fix case rename bug and remove ignored hidden files when delete empty dir.