Skip to content

Commit

Permalink
[FSWatch] Allow customizing flags to FSEventStream
Browse files Browse the repository at this point in the history
  • Loading branch information
aciidgh authored and sstadelman committed Jul 19, 2020
1 parent a4af190 commit bbe05a8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sources/TSCUtility/FSWatch.swift
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,8 @@ public final class FSEventStream {
public init(
paths: [AbsolutePath],
latency: Double,
delegate: FSEventStreamDelegate
delegate: FSEventStreamDelegate,
flags: FSEventStreamCreateFlags = FSEventStreamCreateFlags(kFSEventStreamCreateFlagUseCFTypes)
) {
self.delegate = delegate

Expand All @@ -577,8 +578,7 @@ public final class FSEventStream {
paths.map({ $0.pathString }) as CFArray,
FSEventStreamEventId(kFSEventStreamEventIdSinceNow),
latency,
// FIXME: This needs to be customizable.
FSEventStreamCreateFlags(kFSEventStreamCreateFlagUseCFTypes)
flags
)
}

Expand Down

0 comments on commit bbe05a8

Please sign in to comment.