sftp

java sftp & ftp client library that support file and dir monitoring [closed]

痞子三分冷 提交于 2020-08-26 11:34:57
问题 Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . Improve this question Please recommend me some java client library for sftp and ftp that support directory monitoring. Thank you. 回答1: The most complete is probably Jakarta Commons Net: http://commons.apache.org/net/ 回答2: There is no FTP command for monitoring a directory. Your

java sftp & ftp client library that support file and dir monitoring [closed]

。_饼干妹妹 提交于 2020-08-26 11:32:06
问题 Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . Improve this question Please recommend me some java client library for sftp and ftp that support directory monitoring. Thank you. 回答1: The most complete is probably Jakarta Commons Net: http://commons.apache.org/net/ 回答2: There is no FTP command for monitoring a directory. Your

pysftp: How to update last modified date

只谈情不闲聊 提交于 2020-08-26 06:58:10
问题 I am trying to move a certain file to another directory after doing some process over it. Moving the file was easy using Connection.rename import pysftp conn = pysftp.Connection(host = 'host', username = 'user', password = 'password') remote_src = '/dir1/file1.csv' remote_dest = '/dir2/archive_file1.csv' conn.rename(remote_src, remote_dest) conn.close() But the LastModified date remains same as of original file. Is there a way to update the LastModified date to current date while renaming?

Apache Camel FTP error

ぃ、小莉子 提交于 2020-08-26 06:49:42
问题 I am working on a piece of code that routes from FTP input to a bean process and then to FTP output. The process takes about 15 minutes to complete and when it finishes, the Camel tries to delete a input file from FTP input route. Currently the FTP server throws an error: 13 Jan 2015 18:21:26 DEBUG org.apache.camel.component.file.remote.FtpOperations.deleteFile - Deleting file: ../flex-brazil/Portal_Forn/request_appr/364/NF_4.txt 13 Jan 2015 18:21:26 WARN org.slf4j.helpers.MarkerIgnoringBase