fix a bug when creating a new folder with path with /