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
Fail on the first time because the watch call the delegate when a create event happens. I fix this to support call a block. After create the file, the watcher then watch the path itself, not happend the first time because the path not exists. If you want to monitor other events, maybe call sleep(1) after you create the file. Create and write files happen so quick, so maybe only create event could be catched. Or find a better way to monitor a create event.
When testing FileKit, testWatch() will sometimes fail on the first attempt. I'm not familiar with GCD, so I don't necessarily know why this occurs.
The text was updated successfully, but these errors were encountered: