Skip to content

Commit bbe05a8

Browse files
aciidghsstadelman
authored andcommitted
[FSWatch] Allow customizing flags to FSEventStream
1 parent a4af190 commit bbe05a8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/TSCUtility/FSWatch.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,8 @@ public final class FSEventStream {
562562
public init(
563563
paths: [AbsolutePath],
564564
latency: Double,
565-
delegate: FSEventStreamDelegate
565+
delegate: FSEventStreamDelegate,
566+
flags: FSEventStreamCreateFlags = FSEventStreamCreateFlags(kFSEventStreamCreateFlagUseCFTypes)
566567
) {
567568
self.delegate = delegate
568569

@@ -577,8 +578,7 @@ public final class FSEventStream {
577578
paths.map({ $0.pathString }) as CFArray,
578579
FSEventStreamEventId(kFSEventStreamEventIdSinceNow),
579580
latency,
580-
// FIXME: This needs to be customizable.
581-
FSEventStreamCreateFlags(kFSEventStreamCreateFlagUseCFTypes)
581+
flags
582582
)
583583
}
584584

0 commit comments

Comments
 (0)