Page MenuHome GnuPG

Kleopatra: Extract a tar.gpg archive consisting of only one folder directly into a given directory
Testing, NormalPublic

Description

Currently, a tar.gpg archive is decrypted and saved at the given location into a newly generated folder named with the base name of the archive. This is because the archive might contain a lot of individual files.
Especially if the archive contains only a folder, this may be annoying.

Therefore we want to add an option to directly extract to the given directory, without adding a new output folder.
Therefore we want to directly extract to the given directory, without adding a new output folder, if the archive contains at the base only a single folder.

This should apply to OpenPGP and S/MIME archive extraction, accordingly.

Event Timeline

ebo triaged this task as Normal priority.Thu, Jan 8, 10:37 AM
ebo created this task.
ikloecker moved this task from Backlog to WIP on the gpd5x board.
ikloecker changed the task status from Open to Testing.Wed, Jan 21, 4:30 PM

Instead of adding yet another option I have optimized the case that a single archive containing a single top-level folder is decrypted/extracted (which, typically, is the result of encrypting a folder). In this case, the single top-level folder extracted from the archive is moved to the user-given output folder instead of the outer temporary folder the archive was extracted to. I think that's what most users anyway expect so that an option is superfluous. In case the extracted folder clashes with an existing folder in the user-given output folder then, as usual, the moved folder gets a numbered suffix to avoid the naming collision.

If the user decrypts multiple archives at the same time or if the decrypted archive contains multiple top-level files or folders then the outer folders named after the decrypted archives are kept when moving the extracted archives to the user-given output folder. Anything else would cause pain and chaos in case of filename collisions between the different archives.

I'll wait for feedback before I backport this.

I think this is a very good idea. Go ahead an backport, I'll change the ticket description accordingly.

ebo renamed this task from Kleopatra: Add option to extract a tar.gpg archive directly into a given directory to Kleopatra: Extract a tar.gpg archive consisting of only one folder directly into a given directory.Thu, Jan 22, 8:27 AM
ebo updated the task description. (Show Details)

Backported for VSD 3.4

ikloecker mentioned this in Unknown Object (Maniphest Task).Mon, Jan 26, 9:36 AM