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

[Feature Request]: Compresses files open for writing by another applications #203

Open
1 task done
shankun opened this issue Apr 10, 2024 · 1 comment
Open
1 task done
Assignees

Comments

@shankun
Copy link

shankun commented Apr 10, 2024

Feature description

Just like the -ssw (Compress files open for writing) switch of 7-Zip.
#Compresses files open for writing by another applications. If this switch is not set, 7-zip doesn't include such files to archive.
https://documentation.help/7-Zip/shared.htm

Additional context

No response

Code of Conduct

@rikyoz
Copy link
Owner

rikyoz commented Apr 12, 2024

Hi!
Since v4, bit7z should by default compress files opened for writing by other processes (as if using the -ssw option with 7-Zip), at least when using MSVC.
Bit7z internally uses std::ifstream to open files, and by default MSVC opens files with the FILE_SHARE_READ | FILE_SHARE_WRITE flags, which are the same flags used by 7-Zip when using the -ssw option.
Do you have any problem compressing files while they are already open for writing by other applications?

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

No branches or pull requests

2 participants