TTarWriter.AddFile procedure
Add a file to the archive.
Declaration
procedure AddFile(const Filename: AnsiString;
TarFilename: AnsiString='')Arguments
Filename | File to add to the archive. |
TarFilename | Alternative filename, stored in archive. |
Description
AddFile adds a file to the archive: the contents is read from
FileName. Optionally, an alternative filename can be specified in
TarFileName. This name should contain only forward slash path
separators. If it is not specified, the name will be computed from
FileName.
The archive entry is written with the current owner data and permissions.
Errors
If
FileName cannot be opened, an exception will be raised.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
