-
Notifications
You must be signed in to change notification settings - Fork 57
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
feat: refactor archive type #748
base: main
Are you sure you want to change the base?
Conversation
I like it! Maybe we can rename it |
sure! I've added //test to show how the refactor would look like and to see if the refactor is appropriate one |
done! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps you could also add methods for other functions, like extracting the entire archive? Another awesome feature would be to be able to extract anything that implements PackageFile
.
|
||
impl LocalArchive { | ||
/// Extracts the contents of the archive to the specified destination. | ||
pub fn extract_a_folder( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we also rename this to match the function it calls?
pub fn extract_a_folder( | |
pub fn extract_directory( |
Based on my previous PR, I thought about making Archive type a building block so that you could reuse where needed.
This is how you would use it in rattler-build:
prefix-dev/rattler-build#922