If with parents param, the destination must be a directory, else throw a error.