ContainerEntry
public protocol ContainerEntry
A type that represents an entry from a container (file or directory) with attributes.
-
Retrieve name of the entry from the container.
Declaration
Swift
var name: String -
Retrieve size of the entry’s data from the container.
Declaration
Swift
var size: Int -
Check if entry is a directory.
Declaration
Swift
var isDirectory: Bool -
Provides a dictionary with various attributes of the entry.
FileAttributeKeyvalues are used as dictionary keys.Note
Will be renamed toattributesin 4.0.Declaration
Swift
var entryAttributes: [FileAttributeKey: Any] -
Retrieve entry’s data from the container.
Declaration
Swift
func data() throws -> Data
View on GitHub
ContainerEntry Protocol Reference