Instance Property

fileAttributes

A dictionary of file attributes.

Declaration

var fileAttributes: [String : Any] { get set }

Discussion

The file attributes’ dictionary is the same format as that returned by attributesOfItem(atPath:) (NSFileManager).

See Also

Accessing Files

var filename: String?

The filename of the file wrapper object

var preferredFilename: String?

The preferred filename for the file wrapper object.

var regularFileContents: Data?

The contents of the file-system node associated with a regular-file file wrapper.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software