nvflare.utils.zip_utils module

print_tree(temp_path: Path, exclude_patterns: str | None = None)[source]

Print zip contents in a tree structure using system tree command.

Parameters:
  • zip_path – Path to zip file

  • exclude_patterns – Optional patterns to exclude (e.g. “__pycache__|*.pyc”)

print_zip_tree(zip_path: Path, exclude_patterns: str | None = None)[source]

Print zip contents in a tree structure using system tree command.

Parameters:
  • zip_path – Path to zip file

  • exclude_patterns – Optional patterns to exclude (e.g. “__pycache__|*.pyc”)