fileAction (property)
The action to apply to the file.
Syntax
- (int)fileAction:(int)fileIndex; - (void)setFileAction:(int)fileIndex:(int)newFileAction;
/* Possible Values */
AT_ADD(0),
AT_KEEP(1),
AT_UPDATE(2),
AT_DELETE(3),
AT_EXTRACT(4),
AT_SKIP(5)
public func fileAction(fileIndex: Int32) throws -> ArchivereaderFileActions
public func setFileAction(fileIndex: Int32, newFileAction: ArchivereaderFileActions) throws -> Void
public enum ArchivereaderFileActions : Int32 { case atAdd = 0 case atKeep = 1 case atUpdate = 2 case atDelete = 3 case atExtract = 4 case atSkip = 5 }
Default Value
0
Remarks
The action to apply to the file.
Use this property to control the action that should be applied to the file during the compression or extraction. The following actions are supported:
atAdd (0) | Add the file to the archive |
atKeep (1) | Keep the existing file in the archive |
atUpdate (2) | Update the archived file with a fresher copy |
atDelete (3) | Delete the file from the archive |
atExtract (4) | Extract the file (extraction only) |
atSkip (5) | Skip file extraction (extraction only) |
The FileIndex parameter specifies the index of the item in the array. The size of the array is controlled by the FileCount property.