Structure

DispatchSource.FileSystemEvent

Events involving a change to a file system object.

Declaration

struct FileSystemEvent

Topics

File System Event Flags

static let all: DispatchSource.FileSystemEvent

All changes related to the file system object.

static let attrib: DispatchSource.FileSystemEvent

Changes to the metadata of the file system object.

static let delete: DispatchSource.FileSystemEvent

The deletion of the file system object.

static let extend: DispatchSource.FileSystemEvent

Changes to the size of the file system object.

static let funlock: DispatchSource.FileSystemEvent

The unlocking of the file system object.

static let link: DispatchSource.FileSystemEvent

Changes to the link count of the file system object.

static let rename: DispatchSource.FileSystemEvent

Changes to the name of the file system object.

static let revoke: DispatchSource.FileSystemEvent

The revocation of the file system object.

static let write: DispatchSource.FileSystemEvent

The writing of data to the file system object.

Initializers

init()

Creates an empty option set.

init(arrayLiteral: DispatchSource.FileSystemEvent...)

Creates a set containing the elements of the given array literal.

init<S>(S)

Creates a new set from a finite sequence of items.

Instance Properties

var isEmpty: Bool

A Boolean value that indicates whether the set has no elements.

Instance Methods

func contains(DispatchSource.FileSystemEvent) -> Bool

Returns a Boolean value that indicates whether a given element is a member of the option set.

func formIntersection(DispatchSource.FileSystemEvent)

Removes all elements of this option set that are not also present in the given set.

func formSymmetricDifference(DispatchSource.FileSystemEvent)

Replaces this set with a new set containing all elements contained in either this set or the given set, but not in both.

func formUnion(DispatchSource.FileSystemEvent)

Inserts the elements of another set into this option set.

func intersection(DispatchSource.FileSystemEvent) -> DispatchSource.FileSystemEvent

Returns a new option set with only the elements contained in both this set and the given set.

func isDisjoint(with: DispatchSource.FileSystemEvent) -> Bool

Returns a Boolean value that indicates whether the set has no members in common with the given set.

func isStrictSubset(of: DispatchSource.FileSystemEvent) -> Bool

Returns a Boolean value that indicates whether this set is a strict subset of the given set.

func isStrictSuperset(of: DispatchSource.FileSystemEvent) -> Bool

Returns a Boolean value that indicates whether this set is a strict superset of the given set.

func isSubset(of: DispatchSource.FileSystemEvent) -> Bool

Returns a Boolean value that indicates whether the set is a subset of another set.

func isSuperset(of: DispatchSource.FileSystemEvent) -> Bool

Returns a Boolean value that indicates whether the set is a superset of the given set.

func remove(DispatchSource.FileSystemEvent) -> DispatchSource.FileSystemEvent?

Removes the given element and all elements subsumed by it.

func subtract(DispatchSource.FileSystemEvent)

Removes the elements of the given set from this set.

func subtracting(DispatchSource.FileSystemEvent) -> DispatchSource.FileSystemEvent

Returns a new set containing the elements of this set that do not occur in the given set.

func symmetricDifference(DispatchSource.FileSystemEvent) -> DispatchSource.FileSystemEvent

Returns a new option set with the elements contained in this set or in the given set, but not in both.

func union(DispatchSource.FileSystemEvent) -> DispatchSource.FileSystemEvent

Returns a new option set of the elements contained in this set, in the given set, or in both.

Operator Functions

static func != (DispatchSource.FileSystemEvent, DispatchSource.FileSystemEvent) -> Bool

Returns a Boolean value indicating whether two values are not equal.

Relationships

See Also

Creating a File System Source

class func makeReadSource(fileDescriptor: Int32, queue: DispatchQueue?) -> DispatchSourceRead

Creates a new dispatch source object for reading bytes from the specified file.

class func makeWriteSource(fileDescriptor: Int32, queue: DispatchQueue?) -> DispatchSourceWrite

Creates a new dispatch source object for writing data to the specified file.

protocol DispatchSourceRead

A dispatch source object for reading data from a file descriptor.

protocol DispatchSourceWrite

A dispatch source object for writing data to a file descriptor.

protocol DispatchSourceFileSystemObject

A dispatch source that monitors events associated with a file descriptor.

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