Update Method

Will update certain files in an archive.

Syntax

ANSI (Cross Platform)
int Update(const char* lpszFilenames);

Unicode (Windows)
INT Update(LPCWSTR lpszFilenames);
- (void)update:(NSString*)filenames;
#define MID_SEVENZIP_UPDATE 14

IPWORKSZIP_EXTERNAL int IPWORKSZIP_CALL IPWorksZip_SevenZip_Do(void *lpObj, int methid, int cparam, void *param[], int cbparam[], int64 *lpllVal);

Remarks

When this method is called, the class will attempt to update files in the specified archive with the current files listed in the files collection. You may use the Filenames parameter to tell the class which files in the collection/archive must be updated.

Filenames may be set to one or more filenames or directory names. Files may be specified with or without a path, and with or without wildcards. If a path is specified, files in the indicated directory will be affected; subdirectories will be recursed into if RecurseSubdirectories is true. If no path is specified but wildcards are, matching files in all directories will be affected. If a single filename without a path is specified, it must correspond exactly to the appropriate value of FileCompressedName.

Directories should end with a slash ("/"). If a directory is specified, all files and subdirectories in the specified directory will be affected.

A pipe character ("|") should be used to separate multiple file or directory names. Alternatively, the method may be invoked repeatedly.

If BeginFileOnUpdate is set to True, BeginFile and EndFile will fire before and after updating each specified file listed in the Files collection.

Error Handling (C++)

This method returns a result code; 0 indicates success, while a non-zero error code indicates that this method encountered an error during its execution. If an error occurs, the GetLastError() method can be called to retrieve the associated error message. (Note: This method's result code can also be obtained by calling the GetLastErrorCode() method after it returns.)

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