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