Skip to content

Commit d165b58

Browse files
committed
feat(core): ✨ add method to list the entries of a ZIP archive
1 parent e7c742a commit d165b58

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

rocrate_validator/rocrate.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -679,6 +679,9 @@ def list_files(self) -> list[Path]:
679679
self._files.append(Path(file))
680680
return self._files
681681

682+
def list_entries(self) -> list[zipfile.ZipInfo]:
683+
self._zipref.infolist()
684+
682685
def get_entry(self, path: Path) -> zipfile.ZipInfo:
683686
"""
684687
Return the ZipInfo object for the specified path.

0 commit comments

Comments
 (0)