Coder Social home page Coder Social logo

Comments (4)

nathany avatar nathany commented on May 27, 2024

@jessej3000 Thanks for the report. Can you try updating your import path to use the latest version of fsnotify from https://github.com/fsnotify/fsnotify?

If you still are seeing this issue, can you please provide more information, such as which operating system this is occurring on.

from fsnotify.

jessej3000 avatar jessej3000 commented on May 27, 2024

Thank you Nathan, will do the update and will let you know of the status. BTW I used Mac book Pro:

MacBook Pro (Retina, 15-inch, Mid 2015)
macOS Sierra V10.12
Processor: 2.8 GHz Intel Core i7
Memory: 16 GB 1600 MHz DDR3

from fsnotify.

nathany avatar nathany commented on May 27, 2024

fsnotify currently uses kqueue on macOS.

Watching a directory in kqueue sends a single event when "something" happens in the directory as a whole. fsnotify also adds watches to all the existing files in the directory to see if they change. If the directory notification is triggered, fsnotify has some logic to try to figure out what happened. That logic may not be working quite right the the scenario you describe.

from fsnotify.

jessej3000 avatar jessej3000 commented on May 27, 2024

Are you saying that that logic "logic to try to figure out what happened" is buggy for now?

How do I get a control of that logic? What particular event, function or method should I reference?

Just to describe the detail of what I am trying to do is, please see below:

  1. Folder A contains File1.txt, File2.txt, File3.txt, File4.txt
  2. Folder B empty
  3. Nsnotify Watcher is set to watch folder B.
  4. Copied all files from Folder A and paste them all together into Folder B
  5. I wanted to detect the event of the creation of each file into Folder B but Fsnotify is only able to detect File1.txt

from fsnotify.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.