|
|
| XP is just a number | |
| PerlMonks |
Re: Problem with reading files when we have new directoriesby 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.
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
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||