FSEventStreamCreate in swift

601 Views Asked by At

I am looking at monitoring the access of a directory on our file system and it seems that FSEvent is the way to go.

From what I understand I need to set up a FSEventStreamCreate.

The examples I have found are for Objective-C and I don't quite understand how to use FSEventStreamCreate.

Can someone give me some ideas on how one might monitor a folder?

1

There are 1 best solutions below

0
On

You have to declare a var as function type and define it

see here