Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python "zipfile" compatibility #553

Open
upadsamay387 opened this issue Dec 27, 2023 · 1 comment
Open

Python "zipfile" compatibility #553

upadsamay387 opened this issue Dec 27, 2023 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@upadsamay387
Copy link

upadsamay387 commented Dec 27, 2023

Hi, I'm writing a script that handles multiple archive file types, and while zipfile and rarfile have the same methods and seemingly similar implementations, py7zr does not. This makes it a little annoying to make helper methods as I always have to handle incompatibilities between py7zr and other libraries.

For example:

def _copy_helper(archive, dst, member_prefix):

for file in archive.namelist():

...

Works fine for zipfile and rarfile, but not in py7zr since namelist() isn't implemented.

@miurahr miurahr added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers labels Dec 28, 2023
@miurahr
Copy link
Owner

miurahr commented Dec 28, 2023

Thank you for suggestion. As always, your contribution and Pull-Request are welcome!
py7zr has already implement a feature which list a files in CLI, it will be very easy to implement the feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants