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

Move (un)zip functions to archive.h and checks if (de)compression fails #338

Merged
merged 2 commits into from
Feb 11, 2022

Conversation

autoantwort
Copy link
Contributor

From the code review of #307

auto&& seven_zip_exe = paths.get_tool_exe(Tools::SEVEN_ZIP);

return cmd_execute_and_capture_output(
Command{seven_zip_exe}.string_arg("a").path_arg(destination).path_arg(source / "*"),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we want to exclude .DS_Store on Windows as well?

Copy link
Contributor Author

@autoantwort autoantwort Feb 2, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm. Normally there are no .DS_Store files on windows

src/vcpkg/archives.cpp Outdated Show resolved Hide resolved
Copy link
Contributor

@ras0219-msft ras0219-msft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks really good to me.

@BillyONeal BillyONeal merged commit d13ece3 into microsoft:main Feb 11, 2022
@BillyONeal
Copy link
Member

Thanks for your contribution!

@autoantwort autoantwort deleted the zip-functions-in-archive.h branch February 17, 2022 08:56
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

Successfully merging this pull request may close these issues.

4 participants