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

Allow tar::File to set the file path #7

Closed
ghost opened this issue Dec 2, 2014 · 1 comment
Closed

Allow tar::File to set the file path #7

ghost opened this issue Dec 2, 2014 · 1 comment

Comments

@ghost
Copy link

ghost commented Dec 2, 2014

I'm porting some code that uses libarchive to Rust and there is a need to replicate the function archive_set_entry_pathname(), which sets the archive entry path to the specified string in C. The entry is like the tar::File while iterating, except I think it's a pointer to the current header of the archive iterator. Being able to change the tar::File's path should accomplish this.

Please refer to the following man pages for more information:
man archive_entry
man archive_entry_paths

@ghost
Copy link
Author

ghost commented Jan 21, 2015

Not needed anymore. To solve this problem, just use a HashSet to hold all the tar::File paths through one iteration and manipulate those paths as needed for another operation.

@ghost ghost closed this as completed Jan 21, 2015
This issue was closed.
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

0 participants