Hello,
I have tried quite a few codes but none of them seem to work the way I want.
How do I zlib (no compression required, just adding all files to data chunk would be ok) all files and sub directories in folder (but not folder itself) while saving all paths, so it would extract them to all the correct paths instead of dumping everything into same folder.
i got jvcl code but it does not compress sub folders.
procedure TJvZLibMultipleMainForm.btnCompressClick(Sender: TObject);
var
z : TJvZlibMultiple;
begin
ForceDirectories(ExtractFilePath(edFilename.Text));
z := TJvZlibMultiple.Create(nil);
Screen.Cursor := crHourGlass;
try
lblFilename.Caption := '';
pbProgress.Position := 0;
z.OnProgress := DoProgress;
z.OnCompressingFile := DoCompressFile;
z.CompressDirectory(edSrcFolder.Text,false,edFilename.Text);
finally
z.Free;
Screen.Cursor := crDefault;
end;
pbProgress.Position := 0;
lblFilename.Caption := 'Ready';
end;