rikyoz / bit7z

A C++ static library offering a clean and simple interface to the 7-zip shared libraries.
https://rikyoz.github.io/bit7z
Mozilla Public License 2.0
611 stars 112 forks source link

How can hide the compressed file[Feature Request]: #98

Closed kak13amaplus closed 1 year ago

kak13amaplus commented 1 year ago

Feature description

I didn't find the API that compresses hidden files

Additional context

No response

Code of Conduct

rikyoz commented 1 year ago

Hi! Could you be more specific? Are you having any issues while compressing hidden files? I did some quick tests and had no problems with hidden files.

kak13amaplus commented 1 year ago

@rikyoz

Thank you for your reply!

I don't know which API can be used to hide the compressed files in the compressed package.

In addition,

void compressFiles( const wstring& in_dir, const wstring& out_archive, bool recursive = true, const wstring& filter = L"." ) const; when “in_dir” contains a file with no suffix name, the file will not be compressed.

rikyoz commented 1 year ago

Thank you for your reply!

No worries!

I don't know which API can be used to hide the compressed files in the compressed package.

Uhm, I'm not quite sure I understand:

In addition,

void compressFiles( const wstring& in_dir, const wstring& out_archive, bool recursive = true, const wstring& filter = L"*.*" ) const; when “in_dir” contains a file with no suffix name, the file will not be compressed.

This is a limitation of the current bit7z version that is not easy to overcome since it would require too many changes, and now I'm more focused on the next major version. In practice, the compressFiles method works only for files with an extension (as you can see from the default wildcard filter). I will definitely work on fixing this incorrect behavior in the next major version.