Giter Site home page Giter Site logo

Comments (2)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 20, 2024
Oops sent that a little early :P

It would seem to me there is a bug in the OSX implementation for which I am 
seeing files removed and re-added when neither the file has been moved or 
altered, yet another file has been added.

If an unknown entry is seen then rescan is called which iterates over the 
directory with readdir yet during this iteration files descriptors can be 
opened or closed, does this not invalidate the descriptors for the next readdir 
? and should it not be using telldir and seekdir ?

Liam

Original comment by [email protected] on 19 Jul 2012 at 9:14

from simplefilewatcher.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 20, 2024
Actually now that I have looked more into it this doesn't seem to be the 
problem (although I am still not sure about closing fd's when this would have 
been the last handle to it), I think it has more to do with the order of 
readdir when compared to the sorted cached entries. As far as I can see in the 
docs, the order of entries returned by readdir is not deterministic. If this is 
the case maybe it needs to cache the entries and sort before acting upon them?

Liam

Original comment by [email protected] on 19 Jul 2012 at 9:50

from simplefilewatcher.

Related Issues (6)

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.