AGK for Pascal
ContentsIndexHome
PreviousUpNext
TAgkZip.AddEntry Method

Adds a local file into the zip file.

Syntax
Pascal
procedure AddEntry(const LocalPath: String; const ZipPath: String);
Parameters 
Description 
const LocalPath: String 
The path of the file to add. 
const ZipPath: String 
The path for the file inside the zip. 

The LocalPath parameter is the path to the local file. The ZipPath variable is the path that will be used inside the zip file. This is the only way to add folders to the zip file (by adding a file with a ZipPath such as "folder1/myfile.txt") The local file path is relative to the current directory set using TAgkDirectory.CurrentFolder unless you start the path with a forward slash, in which case the path will be relative to the root of the write directory on the current platform. 

TAgkZip

Copyright (c) 2012. All rights reserved.