123456789101112 |
- def archive_all_files(self, archiver):
- """
- Archive all files using archiver.
- @param archiver: Callable that accepts 2 arguments:
- abspath to file on the system and relative path within archive.
- """
- for file_path in self.extra:
- archiver(path.abspath(file_path), path.join(self.prefix, file_path))
- for file_path in self.walk_git_files():
- archiver(path.join(self.main_repo_abspath, file_path), path.join(self.prefix, file_path))
|