Notify Java or Python when a file has been uploaded with the SFTP protocol -


i use several applications upload files using sftp protocol specific directory on server. i'ld write application deployed on server, using java or python programming language. application has notified when new file has been added directory. i'ld without polling directory. possible?

yes - java 7 use watchservice. python see pyinotify.

the underlying mechanism inotify, , can produce shell-level solutions use inotify-tools run small helper application every time file added.


Comments

Popular posts from this blog

php - SPIP: From Tag directly to an article -

jquery - isAjaxRequest always return false -

ruby on rails - In a controller spec, how to find a specific tag in the generated view? -