Perl POE DirWatcher
Can someone tell me if POE::Component::DirWatch works with an ftp directory .show me how you would watch a director开发者_Go百科y 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 byLIST
. 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.
精彩评论