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

recursive AND list #10

Open
delanym opened this issue May 20, 2021 · 3 comments
Open

recursive AND list #10

delanym opened this issue May 20, 2021 · 3 comments

Comments

@delanym
Copy link

delanym commented May 20, 2021

The -l switch doesn't work recursively.

@noahp
Copy link
Member

noahp commented Aug 31, 2021

This is a bit tricky, I think- the archives are not unpacked when using the -l list switch, we rely on the actual unpacking tool to do the listing. To recursively list, we'd probably need to unpack the archive then list 😕

@dilinger
Copy link

dilinger commented Feb 20, 2022

Hm, maybe -l should warn when it is run with -r as well? "Warning: cannot list contents of archives recursively"? Or even refuse to run, considering them incompatible arguments.

Although it would be cool to make this work, but I don't see how without unpacking. Especially given the differences between archives; some (like tar) can handle unpacking just a single subfile, but I'm not sure that they can all do that.

@KaKi87
Copy link

KaKi87 commented Nov 4, 2022

+1 for outputting a warning or throwing an error.

However, the program should never unpack files when only asked to list, even if it would be in a cache directory, because it would take energy and space while the user doesn't expect it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants