Questions tagged [fsevents]

204 questions
13
votes
2 answers

tracking file renaming/deleting with FSEvents on Lion

I'm trying to use FSEvents to detect when files were added/removed from a specific folder. For the moment, I implemented a simple wrapper around FSEvents, and it works fine : I get all the events. BUT the problem I have now is that when I rename a…
Citron
  • 1,019
  • 9
  • 24
12
votes
2 answers

Watch directory for file changes

I want to monitor a directory (of thousands of files, with about 5 levels of sub directories) for when files are changed. I know I can use the FSEvents API to monitor a directory for when files change inside that directory, but I can't seem to…
v0idless
  • 948
  • 2
  • 11
  • 24
11
votes
2 answers

Writing a file with vim doesn't fire a file change event on OS X

I am using watchdog to monitor .less file change events on OS X. If I change the contents of a .less file with TextMate or Sublime Text the modification event is captured. However, if I edit the content with vim no file modification event is fired…
John Keyes
  • 5,479
  • 1
  • 29
  • 48
10
votes
2 answers

Webpack --watch does not work on Windows (nor webpack-dev-server)

It seems to be a common problem, but after a few days of active searching I didn't find any solution that works in my case. windows7-x64 node: 6.3.0-x64 (also tried node-v4.4.7-x64) npm: 3.10.3 webpack: 1.13.1 sublime text (not Vim) First of all,…
SamAI
  • 121
  • 1
  • 8
10
votes
6 answers

How does the DropBox Mac client work?

I've been looking at the DropBox Mac client and I'm currently researching implementing a similar interface for a different service. How exactly do they interface with finder like this? I highly doubt these objects represented in the folder are…
Brian Gianforcaro
  • 26,564
  • 11
  • 58
  • 77
9
votes
2 answers

The platform "win32" is incompatible with this module (fsevents)

I'm trying to create React app using npx create-react-app first-react-app. When it start to create the app, I'm getting the warning below every time. At the end it's create an app. But what is the reason and how can I resolve this problem…
Sinan.D
  • 101
  • 1
  • 1
  • 3
9
votes
2 answers

How to listen for file system changes MAC - kFSEventStreamCreateFlagWatchRoot

I am listening for Directory and disk changes in a Cocoa project using FSEvents. I need to get events when a root folder is renamed or deleted. So, I passed kFSEventStreamCreateFlagWatchRoot while creating the FSEventStream. But even if I delete or…
wantro
  • 373
  • 1
  • 7
  • 18
9
votes
1 answer

Reading File System Events from Linux Kernel without Inotify

In Linux to read File System Events, most of us use Inotify which is really a Good One. But it has it's limitations. I have to keep track of all the directories i have to watch and get a inotify descriptor for each and every directory. Let's say i…
Manikandaraj Srinivasan
  • 3,557
  • 5
  • 35
  • 62
8
votes
2 answers

Watchdog (osx) not notifying on remote network changes

I'm using Watchdog to monitor a network directory, non-recursive, for a specific pattern of files to be created over time. The issue I am seeing is that while it works fantastic when I test locally, if I make changes to the monitored directory from…
jdi
  • 90,542
  • 19
  • 167
  • 203
8
votes
3 answers

Cocoa, FSEvents, kFSEventStreamCreateFlagFileEvents flag and "renamed" events

I've been playing with FSEvents in a little application of mine to synchronize the content of my application with what's on the hard drive (basically, it's a little image viewer, and I want its content to update when the content of the HDD…
Citron
  • 1,019
  • 9
  • 24
8
votes
1 answer

Is it possible to use FSEvents to get notifications that a folder has been moved?

I'm using the FSEvents API to get notifications of changes in a local directory that I'm tracking. Is it possible to get a notification that the watched directory has been moved to another location on disk, using FSEvents or anything…
Joe Ricioppo
  • 812
  • 2
  • 10
  • 22
8
votes
0 answers

Trying to install create-react-app on Mac fails

I'm trying to create my first React app, and following Facebook tutorial it seems very simple, but it's failing in my Mac. This is my environment, it seems that it fulfills the requirements: Environment Info: System: OS: macOS 10.14.3 CPU: (4)…
Wonton
  • 1,033
  • 16
  • 33
8
votes
1 answer

FSEvents C++ Example

I need to create FSEvents watcher for a Folder in Mac. I'm comfortable with C++ and is there a way to get FSEvents notifications in C++ code, rather than Objective-C. Is there some example code to start with and any libraries i need to include…
Zeus
  • 571
  • 1
  • 7
  • 23
7
votes
1 answer

FSEvents and copying large files

I'm using FSEvents to monitor a directory of files that will have some large files copied into it. Currently FSEvents seems to be sending out a notification when I've begun copying the file, and again when it's finished copying the file. When it's a…
Morgan
  • 1,765
  • 2
  • 19
  • 26
7
votes
3 answers

RVM, FSEvents, and CarbonCore on OS X

I'm setting up a project that uses SASS, which uses FSEvents to keep from polling the disk. It seems that this doesn't play nice with RVM, however. That means that when I run sass --watch I get this warning: Warning: Unable to load CarbonCore.…
Jimmy
  • 35,686
  • 13
  • 80
  • 98
1
2
3
13 14