OverwriteFiles Property

Whether or not to overwrite files.

Syntax

ANSI (Cross Platform)
int GetOverwriteFiles();
int SetOverwriteFiles(int bOverwriteFiles); Unicode (Windows) BOOL GetOverwriteFiles();
INT SetOverwriteFiles(BOOL bOverwriteFiles);
@property (nonatomic,readwrite,assign,getter=overwriteFiles,setter=setOverwriteFiles:) BOOL overwriteFiles;
- (BOOL)overwriteFiles;
- (void)setOverwriteFiles:(BOOL)newOverwriteFiles;
#define PID_TAR_OVERWRITEFILES 14

IPWORKSZIP_EXTERNAL void* IPWORKSZIP_CALL IPWorksZip_Tar_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal);
IPWORKSZIP_EXTERNAL int IPWORKSZIP_CALL IPWorksZip_Tar_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);

Default Value

TRUE

Remarks

If this property is set to true, existing files will be overwritten when decompressing. When Extract or ExtractAll is called, each file specified in Files will be checked for existence. If a file exists, the Overwrite event will be fired, and the files will be overwritten if OverwriteFiles is set to true.

More precise control of which files should be overwritten may be gained by listening to the Overwrite event and altering its parameters when the event is fired.

This property only affects the operation of Extract and ExtractAll. When compressing files, ArchiveFile will always be overwritten unless the user specifies otherwise in the Overwrite event.

Data Type

Boolean

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks ZIP 2020 C++ Edition - Version 20.0 [Build 8300]