doc: update packer README
This commit is contained in:
@@ -42,6 +42,14 @@ class Archiver:
|
||||
else:
|
||||
self.__dist_zip = None
|
||||
|
||||
def push_dir(self, arcname: Path) -> None:
|
||||
if self.__dist_dir is not None:
|
||||
target_filepath = self.__dist_dir / arcname
|
||||
target_filepath.parent.mkdir(parents=True, exist_ok=True)
|
||||
|
||||
if self.__dist_zip is not None:
|
||||
self.__dist_zip.mkdir(str(arcname))
|
||||
|
||||
def push_file(self, filepath: Path, arcname: Path) -> None:
|
||||
"""Mirror an existing file into both sinks.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user