Keka icon indicating copy to clipboard operation
Keka copied to clipboard

enhancement - create tar.gz file

Open ghost opened this issue 8 years ago • 11 comments

enhancement suggestion to create tar.gz file in one step. Now user need to create .tar and then compress it to .gz and remove .tar = 3 steps

ghost avatar Apr 08 '18 10:04 ghost

Use the GZIP panel, it will create a tar.gz (tgz) automatically when needed (more than one input). This also applies to BZIP2.

aonez avatar Apr 08 '18 11:04 aonez

Thanks for your reply but it does not do this. I need a .tar.gz but if compress folder with the Gzip it will create a .tgz almost same but no

ghost avatar Apr 08 '18 11:04 ghost

Well, .tgz is .tar.gz, only the extension is shortened... both for .tgz and .tar.gz, files are first archived with tar and then compressed with gzip.

But for single files it would be useful to have an option to create .tgz or .tar.gz when someone drags a file to the Gzip panel because .gz by itself (without tar) only compresses a sequence of bytes, it's not aware of files and it does not preserve resource forks and it does not archive original filenames or extensions with the file (if someone compressed a file called "picture.jpg" to gzip without archiving it first as .tar and if he saved it as "file.gz" or if someone renamed the .gz file to "file.gz", when that file is uncompressed, he would most likely get a file called "file" without an extension).

MaxPower85 avatar Apr 08 '18 12:04 MaxPower85

@nataniko what @MaxPower85 said is correct. Anyway this made me think and I'll add an obscure hidden parameter to enable the use of long extensions instead of short ones.

aonez avatar Apr 10 '18 07:04 aonez

Are you still planning on doing this? Or is it already done?

jamiljonna avatar May 17 '19 00:05 jamiljonna

@jamiljonna what part are you interested in? The point @MaxPower85 suggested (tar.gz/tgz on single files) or the point @nataniko suggested (cosmetic change in extension tar.gzip instead of tgz).

aonez avatar May 17 '19 06:05 aonez

On the one hand, I definitely think the suggestion by @MaxPower85 should be implemented to preserve file names (probably within the TAR options specifically); on the other hand, if you implement the suggestion by @nataniko—which would presumably mean adding an option in preferences to use tar.gz instead of .tgz—it would address the issue raised by @MaxPower85. That said, I have no preference either way which of the two solutions you choose. I would just like to be able to create a tar.gz more quickly because I often make archives of single files and need to preserve file names.

jamiljonna avatar May 21 '19 16:05 jamiljonna

I like the preference option for using tar.gz instead of .tgz. but I’m not sure I understood that a suggestion was made by MaxPower85.

brianduguid avatar May 21 '19 18:05 brianduguid

@brianduguid @MaxPower85 suggested that using only compression formats (gz, bz2, xz...) that do not archive first usually loses some information. Keka currently uses that compression only if a single file is passes, If multiple files are passed then is does a tarball. So Max suggested using tarball always, even if only one file is passed.

Current:

  • 1 file passed: file.gz
  • 2 file passed: files.tgz (tar.gz)

With the suggestion:

  • 1 file passed: file.tgz (tar.gz)
  • 2 file passed: files.tgz (tar.gz)

aonez avatar May 27 '19 07:05 aonez

Use the GZIP panel, it will create a tar.gz (tgz) automatically when needed (more than one input). This also applies to BZIP2.

@aonez For non-technical users could you please provide some indication in the tool, about this feature. At first I assumed this tool did don't support (.tar.gz/.tgz) untill I came across this thread.

Suggestion: Where is says GZIP, you could do TAR-GZIP.

libinvarghese avatar Apr 28 '20 10:04 libinvarghese

@libinvarghese it has already the icon in the drop window but I get this is not enough anyway and not always visible.

image image

aonez avatar Apr 28 '20 10:04 aonez