(archive_path, path_within, file_obj=None)
| 34 | |
| 35 | |
| 36 | def openArchiveFile(archive_path, path_within, file_obj=None): |
| 37 | archive = openArchive(archive_path, file_obj=file_obj) |
| 38 | if archive_path.endswith(".zip"): |
| 39 | return archive.open(path_within) |
| 40 | else: |
| 41 | return archive.extractfile(path_within) |
| 42 | |
| 43 | |
| 44 | @PluginManager.registerTo("UiRequest") |
no test coverage detected