Can someone tell me if POE::Component::DirWatch works with an ftp directory .show me how you would watch a directory over ftp
No it won't.
FTP servers don't have any sort of notification method, so the only way you could do this would be to periodically run a LIST
command on the remote directory and note any changes. Extra helpfully, there is no true standard for the format of the listing returned by LIST
. Anyway, if you wanted to go this route, you could start with PoCo-Client-SimpleFTP and write a new component that emits events when files change on the remote server. Strong knowledge of FTP is recommended.