fileCompressedName (property)

The file name of the current file, as stored inside of the archive.

Syntax

- (NSString*)fileCompressedName:(int)fileIndex;
- (void)setFileCompressedName:(int)fileIndex:(NSString*)newFileCompressedName;
public func fileCompressedName(fileIndex: Int32) throws -> String
public func setFileCompressedName(fileIndex: Int32, newFileCompressedName: String) throws -> Void

Default Value

""

Remarks

The file name of the current file, as stored inside of the archive. This may be the same as in FileDecompressedName, but is not required to be.

All paths are stored in the archive in standard (UNIX) format. Pathnames specified in the host operating system's format will be immediately converted.

This field should generally be set with a relative path or with no path at all. The exact interpretation of the path is left to the decompression software; generally, pathnames will be interpreted as relative to a base directory, and these subdirectories will be created as needed. Absolute pathnames will not be interpreted correctly by the class, and may or may not be interpreted correctly by other decompression software.

Paths should be specified in standard (UNIX) format. They may also be specified in the format native to the host operating system, in which case they will be immediately converted.

Example


ZipControl.ArchiveFile = "c:\test.zip"
ZipControl.Files.Add(new ZIPFile())
ZipControl.Files[0].DecompressedName = "c:\test\ipworkszip\temp\test.txt"
ZipControl.Files[0].CompressedName = "readme.txt"
ZipControl.Compress()

The FileIndex parameter specifies the index of the item in the array. The size of the array is controlled by the FileCount property.

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