---
title: DispatchSource.FileSystemEvent
framework: dispatch
role: symbol
role_heading: Structure
path: dispatch/dispatchsource/filesystemevent
---

# DispatchSource.FileSystemEvent

Events involving a change to a file system object.

## Declaration

```swift
struct FileSystemEvent
```

## Topics

### File System Event Flags

- [all](dispatch/dispatchsource/filesystemevent/all.md)
- [attrib](dispatch/dispatchsource/filesystemevent/attrib.md)
- [delete](dispatch/dispatchsource/filesystemevent/delete.md)
- [extend](dispatch/dispatchsource/filesystemevent/extend.md)
- [funlock](dispatch/dispatchsource/filesystemevent/funlock.md)
- [link](dispatch/dispatchsource/filesystemevent/link.md)
- [rename](dispatch/dispatchsource/filesystemevent/rename.md)
- [revoke](dispatch/dispatchsource/filesystemevent/revoke.md)
- [write](dispatch/dispatchsource/filesystemevent/write.md)

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)
- [ExpressibleByArrayLiteral](swift/expressiblebyarrayliteral.md)
- [OptionSet](swift/optionset.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [SetAlgebra](swift/setalgebra.md)

## See Also

### Creating a File System Source

- [makeReadSource(fileDescriptor:queue:)](dispatch/dispatchsource/makereadsource(filedescriptor:queue:).md)
- [makeWriteSource(fileDescriptor:queue:)](dispatch/dispatchsource/makewritesource(filedescriptor:queue:).md)
- [makeFileSystemObjectSource(fileDescriptor:eventMask:queue:)](dispatch/dispatchsource/makefilesystemobjectsource(filedescriptor:eventmask:queue:).md)
- [DispatchSourceRead](dispatch/dispatchsourceread.md)
- [DispatchSourceWrite](dispatch/dispatchsourcewrite.md)
- [DispatchSourceFileSystemObject](dispatch/dispatchsourcefilesystemobject.md)
