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

Append not possible with EncryptFilenames #48

Open
GitHubSunnyUK opened this issue Mar 11, 2018 · 0 comments
Open

Append not possible with EncryptFilenames #48

GitHubSunnyUK opened this issue Mar 11, 2018 · 0 comments

Comments

@GitHubSunnyUK
Copy link

Firstly, thank you for sharing this script. That's really kind of you!

I have noticed that when using -Format SevenZip -EncryptfileNames, then appending a file to an existing .7z archive gives an error message:

Compress-7Zip : Invalid archive: open/read error! Is it encrypted and a wrong password was provided?
If your archive is an exotic one, it is possible that SevenZipSharp has no signature for its format and thus decided it is TAR by mistake. Message: Can not update the archive: Open() failed.
At line:1 char:1
+ Compress-7Zip -ArchiveFileName test2.7z -Path .\zip.txt -Format Seven ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (SevenZip4PowerS...+CompressWorker:CompressWorker) [Compress-7Zip], SevenZipArchiveException
    + FullyQualifiedErrorId : err01,SevenZip4PowerShell.Compress7Zip

The -Append function seems to work perfectly when the filenames are not encrypted.

Is this something you might be able to have a look at, at some time please.

Kind regards,
Tomas

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

1 participant