def save_to_dir(self, path: Union[Path, str]) -> str: """Generate wheel file with correct name and save into the provided directory. :returns the wheel file path """ p = Path(path) / self._name p.write_bytes(self.as_bytes()) return str(p)
def save_to(self, path): # type: (Union[Path, str]) -> str """Generate wheel file, saving to the provided path. Any parent directories must already exist. :returns the wheel file path """ path = Path(path) path.write_bytes(self.as_bytes()) return str(path)