The components - Interface - Versions - And in the future.. - Legal issues - FAQ - Download
TGzip - TCrc32 - TAdler32 - TUnTar

TUnTar:
Properties
About guess what :-)
FileSource Tarfile that needs to be unpacked. This should be a complete pathname, including the driveletter.
NextFile Contains information about the next file to be read in a tar-file. This property is read-only and contains:
  • name : string;
  • size : integer;
  • timestamp : TDateTime;
    where
    	type TDateTime = record
    	          sec : integer;
    		  min : integer;
    		  hour : integer;
    		  day : integer;
    		  month : integer;
    		  year : integer;
    	     end;
    	
OverwriteMode Contains information about what should be done when a file that is going to be unpacked already exist. Note that on UNIX systems filename are case-sensitive. There are the following options (TOverwriteMode):
  • omRename
  • omReplace
  • omSkip
OverwriteThisTime Same as OverwriteMode, but only influences behavior immediately after an OnExtractOverwrite event.
OverwriteFilename New filename for the file that already existed. Filename must be including pathname and driveletter.
Progress Percentage of data that is already processed.
ProgressStep Value from 0..100. A value of 11 generates an event when 11%, 22%, 33%, ... 99%, 100% of the data is processed. 0 disables this event and 100 only triggers the event when all the data is processed.
UnpackPath Path where to unpack the tar-file. This should be a complete path, including the driveletter. If the path does not exist it will be created.

Functions
GetInfo Get information about the files in the tar-file denoted by FileSource After every file an event (see OnNextFile) will be generated and the information can be found in NextFile.
UnTar Start extracting files from tar-file denoted by FileSource

Events
OnExtractOverwrite This event will be triggered when OverwriteMode = omRename and the file to be extracted already exists.
OnNextFile When a new file is reached in the specified tar-file, this event will be triggered and information about the reached file can be found in NextFile
OnProgress After completion of ..% (see ProgressStep) this event will be triggered.