[repo] fixed bug for creating new file/dir with name already exists