ZipEntry
public class ZipEntry: ContainerEntry
Represents either a file or directory entry in ZIP container.
-
Name of the file or directory.
Declaration
Swift
public var name: String -
Comment associated with the entry.
Declaration
Swift
public var comment: String? -
File or directory attributes related to the file system of the container’s creator.
Declaration
Swift
public var attributes: UInt32 -
Size of the data associated with the entry.
Declaration
Swift
public var size: Int -
True, if an entry is a directory. For MS-DOS and UNIX-like container creator’s OS, the result is based on ‘external file attributes’. Otherwise, it is true if size of data is 0 AND last character of entry’s name is ‘/’.
Declaration
Swift
public var isDirectory: Bool -
Returns data associated with this entry.
Throws
ZipErroror any other error associated with compression type, depending on the type of the problem. An error can indicate that container is damaged.Declaration
Swift
public func data() throws -> Data
View on GitHub
ZipEntry Class Reference