Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Monitoring directory for new files

by cdarke (Prior)
on Jan 20, 2010 at 06:31 UTC ( #818383=note: print w/ replies, xml ) Need Help??


in reply to Monitoring directory for new files

The only *true* way to avoid race conditions is to use the Win32 API ReadDirectoryChangesW with OVERLAPPED, and do that from C/C++.

Probably not what you want to hear, sorry.


Comment on Re: Monitoring directory for new files
Re^2: Monitoring directory for new files
by tokpela (Chaplain) on Jan 21, 2010 at 11:22 UTC

    Actually, there is a module on this site by D. Faure that encapsulates this API - Win32::ReadDirectoryChangesW.

    I found this a few weeks ago and have been using it in a test program and it works well enough for my purposes. I am in the process of moving (countries) but intend to ask D Faure if I can put this on CPAN when I get settled.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://818383]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2014-11-26 04:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (162 votes), past polls