Sign in Join
FPDoc Onlineexperiment

TTarWriter class

In unit LibTar

Class to write tar archives.

Declaration

pascal
TTarWriter = class

Description

TTarWriter can be used to create .tar archives. It can be created using a filename, in which case the archive will be written to the filename, or it can be created using a stream, in which case the archive will be written to the stream - for instance a compression stream.

See also

Properties

PermissionspublicArchive entry permissions.
UIDpublicArchive entry user ID.
GIDpublicArchive entry group ID.
UserNamepublicArchive entry user name.
GroupNamepublicArchive entry group name.
ModepublicArchive entry mode.
MagicpublicArchive entry Magic constant.

Methods

CreateEmptyprotected
WritePaxHeaderprotected
CreatepublicCreate a new archive.
DestroypublicClose archive and clean up TTarWriter.
AddFilepublicAdd a file to the archive.
AddStreampublicAdd stream contents to archive.
AddStringpublicAdd string as file data.
AddDirpublicAdd directory to archive.
AddSymbolicLinkpublicAdd a symbolic link to the archive.
AddLinkpublicAdd hard link to archive.
AddVolumeHeaderpublicAdd volume header entry.
FinalizepublicFinalize the archive.

Fields

FStreamprotected
FOwnsStreamprotected
FFinalizedprotected
FPermissionsprotected
FUIDprotected
FGIDprotected
FUserNameprotected
FGroupNameprotected
FModeprotected
FMagicprotected

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