Giter Club home page Giter Club logo

Comments (2)

VuongN avatar VuongN commented on August 15, 2024

Definitely seeing the same issue for the same use-case (as @fatuhoku described above) and it's definitely undesirable. Any thoughts on whether this will be addressed in the upcoming bug fixes, @alandipert? Thanks again for the nice work. This has been very helpful in my workflow.

UPDATE: After some thinking, I believe that when my (Python) unittests are executed, new *.pyc files are also compiled, thus producing another "change" event for the directory-this results in action being invoked twice. A little more digging around, I think eventPaths are actually only directories and not files. This will be difficult to filter for files (in my case, it would be nice to filter out *.pyc in the directory). At the moment, I'm thinking that perhaps this hack will be able to fix my issue: write timestamp to temporary file, rescan for any __.py* file changed after that time-if exist continue with callback if not bail. Will update with results once done.

from fswatch.

emcrisostomo avatar emcrisostomo commented on August 15, 2024

Hi @fatuhoku and @VuongN,

You can try the upcoming fswatch v. 1.0.0 release: you should not receive a change event for the containing directory when a contained file is changed.

Let us know your feedback.

Cheers,
-- Enrico M. Crisostomo

from fswatch.

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.