To watch a file for changes using kqueue
in Swift, you can follow the below steps -
libc
.main.swift12 chars2 lines
kqueue
instance.main.swift21 chars2 lines
main.swift54 chars2 lines
EVFILT_VNODE
constant, which listens for changes in the file.main.swift31 chars2 lines
NOTE_DELETE
and NOTE_WRITE
constants.main.swift50 chars2 lines
main.swift163 chars2 lines
kqueue
instance using kevent
system call.main.swift51 chars2 lines
main.swift159 chars8 lines
main.swift51 chars2 lines
gistlibby LogSnag