Beefy Boxes and Bandwidth Generously Provided by pair Networks Bob
XP is just a number
 
PerlMonks  

Re: Problem with reading files when we have new directories

by fmerges (Chaplain)
on Feb 07, 2007 at 10:05 UTC ( [id://598787]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Problem with reading files when we have new directories

Hi,

With Linux you can use Inotify, see on CPAN

Other way is doing a polling of the directory and fire up an event if there is a new directory. You only have to "rewind" the dirhandle and look again if any new file is there that you haven't processed if you need to make a check like this.

See also POE::Component::DirWatch::Object.

Regards,

fmerges at irc.freenode.net
  • Comment on Re: Problem with reading files when we have new directories

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://598787]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.