You are not logged in.
Hi, all.
I want to uncompress the *.tgz file which is compressed on the linux system.
I have tested the sample of the function TTestCoreCompression.GZipFormat in the test.core.data.pas, but unsuccessful.
My computer is win10 + delphi XE5.
Please give me some advice.
Offline
tgz is .tar + .gz
mormot.core.zip supports .gz but not .tar.
For .tgz uncompress, use
https://github.com/synopse/mORMot2/blob … in7zip.pas
and a .7z dll.
Online
Hi,
Please check the below code for decompress .tgz file using mormot.lib.win7zip.
var
L7zip: I7zReader;
begin
L7zip := New7zReader('c:\temp\test.tgz', fhUndefined, F7zDllName);
L7Zip.ExtractAll('c:\temp\test', True);
I got an error as below:
TFileStreamEx.Create(c:\temp\test\) failed as ERROR_PATH_NOT_FOUND
Need your help.
Thanks in advance.
*)PS: when symbolic link(come from linux system) is contained in the .tgz , then above error.
Last edited by bigheart (2024-11-02 05:13:46)
Offline
Of course 'c:\temp\test' folder alreay exists.
Offline