Questions tagged [fsevents]

204 questions
4
votes
1 answer

FSEvents in MacRuby: wrong callback is executed

I'm working on GUI app in MacRuby and I need to use FSEvents. I'm registering a couple of streams for different directories. Changes in any of those directories result in running a callback, but there's a big issue: no matter which directory…
Jan Dudek
  • 807
  • 1
  • 9
  • 17
4
votes
1 answer

FSEvents treatment of disk changed by other OS

I'm seeing strange behavior on FSEvents where I mount my drive in recovery mode and on reboot get zero fsevents in my stream. I do the following: Boot regularly Record current event with FSEventsGetCurrentEventId() Boot in recovery mode and modify…
Kat
  • 1,604
  • 17
  • 24
3
votes
2 answers

How to get folder changes notifications(folder watcher) in cocoa

I am new to Cocoa Application development. I want my application to be notified when any file under a given directory is modified(folder watcher). Modified means deleted, added, content of file is changed. I tried using FSEvents also with using…
Amrinder Singh
  • 205
  • 6
  • 16
3
votes
0 answers

Mac OS X How do I programatically detect if a changed file is still being 'used' by the same process that changed it?

I'm investigating a problem with a utility we've developed. We track a file or a directory and when a change has been made we upload the new version to a central repository. Our utility is similar to dropbox in that you can track changes, but its…
atlasalive
  • 31
  • 1
3
votes
4 answers

Reactjs development server won't start on macos catalina

I am trying to create a new react.js project with create-react-app. When I execute yarn start, the development server doesn't start and the console gives me this message : Starting the development server... dyld: lazy symbol binding failed: Symbol…
thecassion
  • 506
  • 1
  • 7
  • 19
3
votes
2 answers

Any way to avoid fsevents warnings?

Trying to get into react, using npm and such, and I often get these types of warnings: > npm install axios redux react-redux redux-thunk react-router-dom validator redux-form npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.8…
Svish
  • 152,914
  • 173
  • 462
  • 620
3
votes
1 answer

Error in adding vuetify on a project

I have created a vue-cli project. And I tried to add vuetify but I couldn't do it I've run: npm install vuetify --save A error came out on terminal: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.1.2…
Junior Vilas Boas
  • 1,365
  • 3
  • 9
  • 11
3
votes
1 answer

MacOS X file system watcher

I am developing an utility application which logs other apps' file system activities. Therefore I am looking for a way to receive file system change notifications including the file paths as well as the corresponding PIDs. According to my state of…
Tobias
  • 31
  • 2
3
votes
1 answer

How to monitor file open and file read events in OSX

I have researched on File System Events and Kernel Queues to identify how to monitor events. Unfortunately, these allow notifications only upon modifications, renames or delete events (events that update the state). I need to get a callback upon…
3
votes
0 answers

No callback get called from FSEventStreamCreate with modifications created by self in watched file

I am trying to make a console window in my OS X application, which is basically displaying the content of the application log file stored in ~/Library/Application Support/CocosBuilder/cocosbuilder.log I redirected all NSLog statement from my…
3
votes
2 answers

How can I get notifications that a file is being read on OS X?

I have a piece of software that works on Windows. The software has two components: file system minifilter driver that works in kernel mode and a user mode component that talks to the driver. Driver receives notifications on IO interrupt requests,…
oleksii
  • 35,458
  • 16
  • 93
  • 163
3
votes
1 answer

how to create a watcher using fsevents in mac osx 10.6

I m trying to get file event notifications using fsevents.h file. I m working with Mac OS X 10.6 and XCode 3.1.4 in which i found fsevents.h in four following…
mathan
  • 31
  • 1
  • 3
3
votes
1 answer

FSEvent failed to create stream in root context: Error: FSEventStreamCreate: _FSEventStreamCreate: ERROR: watch_path() failed for

I want to monitor directories on mac using FSEvent. This Error is getting generated in root context. If i run program in user context it work properly. Error is: FSEventStreamCreate: _FSEventStreamCreate: ERROR: watch_path() failed for some_path. I…
hkb_dev
  • 379
  • 1
  • 14
3
votes
1 answer

Push to Heroku failed - error fsevents@0.2.0 install: `node-gyp rebuild`

I'm trying to push my app to Heroku but I keep getting this error, looks like an issue with node-gyp but no idea how to go about fixing it. 2854 verbose rebuildBundles fsevents@0.2.0 2855 verbose rebuildBundles [ 'nan' ] 2856 info install…
Nazzanuk
  • 61
  • 7
3
votes
0 answers

Mac FSEvents - How to detect if a file or directory was deleted/removed

I use the FSEvent API to detect file modifications. I'm already able to detect when new files/folders are created or renamed. But I can't detect if a file was removed/deleted. When I delete a file I get a kFSEventStreamEventFlagItemRenamed and not…
Tobi Weißhaar
  • 1,617
  • 6
  • 26
  • 35