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
Post a Comment