-
Notifications
You must be signed in to change notification settings - Fork 27
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
Entry information #75
Comments
Great. Do you have an idea for the API? |
Libarchive does provide a few functions for getting information about entries. A think they would generally come in hand when iterating over them in the API we currently provide. It would need some internal code change, but I think it would be useful to have them accesable as methods over the |
I've implemented a hack to support my usecase here: https://github.com/TethysSvensson/compress-tools-rs/commit/d52e0fd4082d26ce86f8847290651aa4239a8c1a . I don't think this is a particularly good implementation or API, but as I said it does support my usecase. |
@TethysSvensson, the proposed API isn't bad. I think the stat could use a Rust type for it. Did you improve it? |
@otavio No, I'm still using my branch from November. |
Please rebase and prepare a PR. |
@TethysSvensson, https://docs.rs/nix/latest/nix/sys/stat/struct.FileStat.html could be an option. |
Once you prepare an initial PR, I'll try to rework it. |
The |
Fixed in f654d6d. |
It would be nice to be able to get information about entries, e.g. file type or the creation time.
The text was updated successfully, but these errors were encountered: