Questions tagged [fsevents]

204 questions
3
votes
1 answer

FSEvents - find out what was changed in the target directory

I just set up an FSEvent in order to monitor the state of a target folder. It works just fine, because I am notified every time a change takes place and I am also given the path to the subdirectory where the change has taken place. But what if I…
whiplash
  • 151
  • 1
  • 1
  • 13
3
votes
2 answers

FSEventStream: What does the kFSEventStreamCreateFlagIgnoreSelf flag do?

I am monitoring file system changes in a specific directory using the OSX FSEventStream. I was looking at the documentation here and I found an interesting flag described, kFSEventStreamCreateFlagIgnoreSelf. According to the documentation using…
John Bowers
  • 1,695
  • 1
  • 16
  • 26
3
votes
2 answers

Is it possible to get the filename from an FSEvent id?

I've created a simple filesystem watcher in C++ using the mac File System Events API as documented here: apple developer doc. My question is in the title. How do I get the path of the thing that was changed? The eventPaths array only gives me the…
Ben J
  • 1,367
  • 2
  • 15
  • 33
2
votes
1 answer

Why does lsyncd require xnu?

I am working through the steps of compiling lsyncd on Mac OS X (10.7.3 to be exact). Finally managed to it get it compiled despite a couple minor syntax errors in the lysncd source code; and I understand from Axel Kittenberger (the developer…
Calvin Cheng
  • 35,640
  • 39
  • 116
  • 167
2
votes
3 answers

How to determine if a file copy is completed using cocoa

I am developing folder watcher application for MAC in XCode using Foundation framework and FSEvents API. I need to know whether the file has been completely copied to the destination before I open the file for other operation. Is there any way of…
Nisar Ahmed
  • 67
  • 1
  • 8
2
votes
1 answer

FSEvents weirdness on OS X Leopard

I want to monitor file-system events for a couple of directories on the mac. The directories I want to monitor might change at runtime, so using FSEvents here's what my app does: creates a global callback function to handle callbacks create a new…
psychotik
  • 38,153
  • 34
  • 100
  • 135
2
votes
1 answer

Stream created with FSEventStreamCreate is nil

I want to create a simple event stream in order to listen events when some changes ocurre in a directory. The first step is the creation of the stream, but I receive an error in the creation using FSEventStreamCreate function. Googling this error…
Giuseppe
  • 6,666
  • 2
  • 20
  • 32
2
votes
1 answer

No loader is configured for ".node" files: node_modules/fsevents/fsevents.node in project with Vite

I am making a project with Vite + React and it worked well until the end of last week, but all of a sudden, I got this error: No loader is configured for ".node" files: node_modules/fsevents/fsevents.node node_modules/fsevents/fsevents.js:13:23: …
Olivia
  • 97
  • 1
  • 7
2
votes
1 answer

Declaring callback function inside FSEventStreamCreate

There are a couple examples of using an FSEvent to listen for changes in the file system. How to listen for file system changes MAC - kFSEventStreamCreateFlagWatchRoot and FSEvents weirdness on OS X Leopard When creating the event with…
ck_
  • 3,719
  • 10
  • 49
  • 76
2
votes
1 answer

NuxtJs spontaneously stopped working with fs errors

So here I was working away on my NuxtJS SPA and after a page refresh, I started getting these errors. I have no clue where this comes from I did not change anything that could cause it. I tried everything including npm fixing and reinstalling the…
Robert
  • 1,206
  • 1
  • 17
  • 33
2
votes
2 answers

Gatsby cloud deploy build error: bindings not accessible from webpack-dev-server:fsevents

I'm working on a Gatsby site. Currently I've got it building just fine locally, but when I try to deploy to Gatsby Cloud, it fails during "install project dependencies", with the Raw Logs showing this: 17:39:24 PM: Cloning into…
Javan Pohl
  • 21
  • 1
  • 2
2
votes
0 answers

What is the definition of "since now" for FSEventStreamCreate

This might seem an odd question but I want to be certain I've understood this correctly. In the fsevents manual on FSEventStreamCreate(): Creates a new FS event stream object with the given parameters. In order to start receiving callbacks you…
Philip Couling
  • 13,581
  • 5
  • 53
  • 85
2
votes
1 answer

npm install error. node js? fsevents? Xcode? Or another problem?

Good afternoon. Friends! Help please. There was an error. I run the npm install command and this problem crashes: natalakolivosko@192 webpack-static-template % npm install > fsevents@1.2.13 install…
Ilya Y
  • 744
  • 6
  • 24
2
votes
0 answers

dyld: lazy symbol binding failed: Symbol not found: _FSEventStreamCreate

When trying to run npm start, I'm receiving two errors dyld: lazy symbol binding failed: Symbol not found: _FSEventStreamCreate dyld: Symbol not found: _FSEventStreamCreate This happens in every local repository on my machine, except one. What…
2
votes
0 answers

What purpose does nody-gyp rebuild during npm install of fsevents serve?

Well I am currently in the process of streamlining the build system, to make everything work and manage we create a temporary (node12-alpine based) docker that builds a project made with create-react-app. The docker has as entrypoint: ENTRYPOINT npm…
paul23
  • 8,799
  • 12
  • 66
  • 149