I have a requirement of detecting addition of new files into a folder on a remote Linux server that follows SFTP for its connection.
Right now I am trying to detect the changes from local(windows OS ) by using Java nio Watch service, but it seems it can work for local file changes or shared drive file changes.
I can't post my code due to some genuine reason, but I have used jsch to connect to SFTP server and Java nio Watch service to detect the file changes.
I will be deploying the java springboot app on openshift as a docker container(can jsch and watcher service be used for linux based containers to detect file changes on remote linux SFTP server?).
I went through Google and got few answers but I am confused a bit.
Want to know a better approach to detect the file changes on remote SFTP based Linux server.
Much thanks for the help!!