문제

WinSCP provides a feature, "Keep Remote Directory Up To Date". This relies on the modified local files' timestamp to appear as more recent than the remote servers', which will trigger an update to the remote file.

Over an FTP connection, the granularity of file timestamps is typically only at the minute level. Thus if a local file is saved twice in the same minute, only the first update will happen.

The log will show something like:

2:28:42 AM Change in '/local/src/dir/' detected. #first update
2:28:43 AM File '/local/src/dir/updated/file' uploaded. #file uploaded
2:28:45 AM Change in '/local/src/dir/' detected. #subsequent update, no file upload
2:28:48 AM Change in '/local/src/dir/' detected.
도움이 되었습니까?

해결책

Unfortunately it's a limitation of how WinScp determines a file is updated, and the timestamp granularity that FTP provides. If possible, connect with SFTP which will provide second granularity.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top