CreateEntryFromFile

<< Click to Display Table of Contents >>

Navigation:  EasyDotNet documentation > Classes > TZipArchive class > Methods >

CreateEntryFromFile

Previous pageReturn to chapter overviewNext page

Archives a file by compressing it and adding it to the zip archive.

 

sourceFileName - The path to the file to be archived. You can specify either a relative or an absolute path. A relative path is interpreted as relative to the current working directory.

 

entryName - The name of the entry to create in the zip archive.

 

compressionLevel - One of the enumeration values that indicates whether to emphasize speed or compression effectiveness when creating the entry.

 

Returns: A wrapper for the new entry in the zip archive.

 

CreateEntryFromFile             PROCEDURE(STRING sourceFileName, STRING entryName, CompressionLevelEnum compressionLevel = CompressionLevel::Optimal, BOOL pDisposeEntry = TRUE), *TZipArchiveEntry, PROC