removed ensure file become a directory!