Adds file to zip directory.
Source position: zipper.pp line 414
public function TZipFileEntries.AddFileEntry( |
const ADiskFileName: AnsiString |
):TZipFileEntry; |
const ADiskFileName: AnsiString; |
const AArchiveFileName: AnsiString |
):TZipFileEntry; |
const AStream: TStream; |
const AArchiveFileName: AnsiString |
ADiskFileName |
|
Name of the file or directory on the local file system. |
Collection item added in the method.
ADiskFileName |
|
Name of the file or directory on the local file system. |
AArchiveFileName |
|
Name used for the file or directory in the .ZIP archive. |
AStream |
|
Stream with the content for the zip file entry. |
AArchiveFileName |
|
Name used for the file or directory in the .ZIP archive. |
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.