Questions tagged [fsevents]
204 questions
1
vote
1 answer
FSEvents: get monitored path inside fsevents_callback
My application has few objects which watch for certain changes in few folders. FSEvents library is used.
The problem is I don't see easy way to get monitored path(s) in some watchers in fsevents_callback. Maybe it's trivial, yet reference to self…

nrph
- 335
- 7
- 18
1
vote
1 answer
Ignoring fsevents dependency while deploying
I developed a little Node.JS app using my macbook. Everything is fine and I'm going to deploy it to Heroku.
git push heroku master command exits with an error:
9045 info install fsevents@0.2.1
9046 verbose unsafe-perm in lifecycle true
9047 info…

Fabio B.
- 9,138
- 25
- 105
- 177
1
vote
1 answer
Skip steps in fsevents queue
I'm currently monitoring a folder using fsevents. Every time a file is added, a code is executed on this file. A new file is added to the folder every second.
from fsevents import Observer, Stream
def file_event_callback(event):
# code 256 for…

Martin
- 33
- 6
1
vote
1 answer
What are the 0x3F 0xB3 bytes for in /dev/fsevents?
I am experimenting with the filemon source code. I'm debugging why it crashes on iOS 7. I do not have much experience in fsevents but I noticed that in the bytestream it could read off of from /dev/fsevents it follows this pattern:
(fileop info)…

radj
- 4,360
- 7
- 26
- 41
1
vote
2 answers
Python 3.1.1 for OS X FSEvents
Am working on file / folder event capturing of OS X 10.5 and 10.6 versions. My application is developed using Python 3.1.1. Donno whether FSEvents are supported by Python 3.1.1.
If FSEvents are not supported by Python 3.x, is there any other way…

Kingsley Reuben
- 145
- 2
- 12
1
vote
2 answers
Continuously write content of a log file into an NSTextview
I'm having trouble with an NSTextview which should continously update with the contents of a log file. The app is a master-detail UI, the master view contains an array of "backup" objects, while the detail view contains an NSTabView with one of the…

Mojo66
- 1,109
- 12
- 21
1
vote
1 answer
Get FullPath of changed file using SCEvents (FSEvents wrapper )?
I had implemeted file watcher part using SCEvents : https://github.com/mz2/SCEvents It is notifying me when file is created,modified,deleted or renamed like this:
2014-02-11 16:08:38.725 TestSCEvent10-2[2995:403] SCEvent { eventId = 3182336,…

user3282340
- 15
- 5
1
vote
2 answers
Get timestamp from FSEvents event id
I am using the FSEvents API to get all the changes in a directory from its creation until now.
From the way I am doing it, I successfully get all the event ids, however these events do not contain timestamps. At the beginning I thought it was…

piggyback
- 9,034
- 13
- 51
- 80
1
vote
0 answers
FSEvents API and kqueue caused the real memory go up fast and app hang up
I want to monitor the change of folder. I can use FSEvents or kqueue as well, but the problem is memory go up so fast (more than 2GB for a tiny app) when I monitor a folder which lot of JPG images(I tested with 100 Photos). I see lot of ImageIO was…

user1002909
- 174
- 2
- 11
1
vote
3 answers
How to use kFSEventStreamEventFlagEventIdsWrapped with FSEvents?
I'm trying to understand how to use the kFSEventStreamEventFlagEventIdsWrapped event flag with FSEvents.
According to the documentation, the flag is sent to registered instances when the event id counter wraps around, thus rendering previous event…

Frizlab
- 846
- 9
- 30
1
vote
1 answer
How to detect if a file was closed?
is it possible to detect if a file (e.g. a pdf file opened in preview) was closed?
The FSEvents API does not fire such an event.
Maybe I could observe the associated process or something like that?!

Tobi Weißhaar
- 1,617
- 6
- 26
- 35
1
vote
1 answer
Python on OS X: ImportError: No module named fsevents
I know nothing about python, but I have a (used to be) working script someone else wrote, and in that script are the following two lines:
from fsevents import Observer
from fsevents import Stream
When I execute the python script from Terminal via…

iOSProgrammingIsFun
- 1,418
- 1
- 15
- 32
1
vote
1 answer
Cocoa File Opened Event - Detect if a file was opened
I want to ask if it is possible to detect if a file was opened in Finder. I watched at the File System Events API and it seems not possible to listen to such an event.
Anyone knows if it is possible?

Tobi Weißhaar
- 1,617
- 6
- 26
- 35
1
vote
0 answers
FSEvents callback function event flag trouble
I have a FSEvents stream, I observe a folder. When I add some files to that folder, callback function triggers that. But, I thought that I can check a specific event with FSEventStreamEventFlags constants, like add file to my folder, or check that…

Dima Deplov
- 3,688
- 7
- 45
- 77
1
vote
0 answers
Callback not being called Python
I'm writing an application that has to be able to monitor filesystem directories for changes in python, in order to do that i use MacFSEvents, a python wrapper over the FSEvents C API, as for obvious efficiency reasons polling can't be a choice…

Filippo Savi
- 401
- 3
- 12