Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I have a task which needs to be notified when a image is copied to a folder. I found a example from: http://developer.apple.com/library/mac/#featuredarticles/FileSystemEvents/_index.html

It works when using command:

    $ cp motorcycle.png motorcycle-copy1.png

It doesn't work when I copy a image in and paste, or I drag a new image in the folder. The fsevents_callback reacts, it menas the folder is changed. but how do I know there is a new image copied to the folder or a image changed in the folder?

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.