Sign in Join
FPDoc Onlineexperiment

TUnZipper.UnZipAllFiles procedure

Member of TUnZipperpublicIn unit Zipper

Unzips all files in a zip file, writing them to disk.

Declaration

pascal
procedure UnZipAllFiles; virtual
procedure UnZipAllFiles(const AZipFileName: RawByteString)

Arguments

AZipFileName

Name of the .zip file unzipped in the method.

Description

This procedure unzips all files in a TZipper object and writes the unzipped files to disk.

The example below unzips the files into "C:\windows\temp":

uses
  Zipper;
var
  UnZipper: TUnZipper;
begin
  UnZipper := TUnZipper.Create;
  try
    UnZipper.FileName := ZipFilePath;
    UnZipper.OutputPath := 'C:\Windows\Temp';
    UnZipper.UnZipAllFiles;
  finally
    UnZipper.Free;
  end;
end.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.