You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
letfileWatcher=FileWatcher(["~/Desktop/test/".tildePath])
fileWatcher!.callback ={ /*[weak self]*/ event in//<--The weak self part enables you to interact with your app in a safe manner, not required
Swift.print(self?.someVariable)//Outputs: a variable in your current class
Swift.print(event.description)//Outputs: a description of the file change
}
filewatcher.start() // start monitoring