TZipFileEntries.AddFileEntry¶
Adds file to zip directory.
Declaration¶
Source position: zipper.pp line 414
public
function AddFileEntry(const ADiskFileName: AnsiString) : TZipFileEntry;
function AddFileEntry(const ADiskFileName: AnsiString;
const AArchiveFileName: AnsiString) : TZipFileEntry;
function AddFileEntry(const AStream: TStream;
const AArchiveFileName: AnsiString) : TZipFileEntry;
Description¶
AddFileEntry adds a file or directory to the list of entries that will be written out in the .zip file. AddFileEntry calls the Add method to create the new collection item, and casts it the TZipFileEntry type used in TZipFileEntries.
Values passed as arguments to the overloaded variants are stored in the corresponding properties in the TZipFileEntry instance.
The return value is the TZipFileEntry instance added to the collection.