in reply to Re: The "readdir()" fails to detect files created after the call to "opendir()"
in thread The "readdir()" fails to detect files created after the call to "opendir()"

I'm not a Linux person, but was just thinking that even Windows has events to notify listeners about file system changes - Glad to see that Linux also does this

  • Comment on Re^2: The "readdir()" fails to detect files created after the call to "opendir()"

Replies are listed 'Best First'.
Re^3: The "readdir()" fails to detect files created after the call to "opendir()"
by roboticus (Chancellor) on Jan 20, 2015 at 21:28 UTC

    SimonPratt:

    Yeah, I figured people may not be aware that Linux and MacOSX also have filesystem events available. I try to use filesystem events when I can, to avoid repeated directory scanning. Especially when many directories would need scanning.

    ...roboticus

    When your only tool is a hammer, all problems look like your thumb.