[Overview][Constants][Types][Classes][Procedures and functions][Index] |
Add a file to the archive
Source position: libtar.pp line 199
public procedure TTarWriter.AddFile( |
Filename: string; |
TarFilename: AnsiString = '' |
); |
Filename |
|
File to add to the archive |
TarFilename |
|
Alternative filename, stored in archive |
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.
If FileName cannot be opened, an exception will be raised.
|
Add stream contents to archive. |
|
|
Add string as file data |
|
|
Add hard link to archive |
|
|
Add a symbolic link to the archive |
|
|
Add directory to archive |
|
|
Add volume header entry |