Bug: 'New and Updated Files Only' broken
- WinSCP version 5.1.3 (Build 2881)
- This bug used to also happen in older versions before 'New and Updated Files Only' was added to the copy window
- Windows 7 Home Premium Version 6.1 (Build 7601: Service Pack 1)
- FTP transfer protocol
- Commander
- No errors
- I select a local directory on the left panel to copy to the remote server which has already had a full copy of the same directory copied to it on a previous date. The purpose of this is to do a backup of this directory, adding new files and replacing updated files, but not replacing files which are older on the local machine. This is what the 'New and Updated Files Only' selection is intended to do if I understand it correctly. This process works correctly for files that are a small number of directory levels deep but it fails when the files are around 8 levels deep and the time comparison no longer works correctly so it replaces files that are newer on the remote server. This also failed in older versions that did not have 'New and Updated Files Only' when identical file names were found and the 'File exists - Replace?' window came up and I clicked the 'Newer Only' button, essentially resulting in the same behaviour and it still has this problem if I use this technique when the 'New and Updated Files Only' checkbox is not ticked. I transfer using binary and exclude temporaries.
- Remote server is a Unix environment
- It is difficult to obtain a log file because I can only duplicate the problem by copying a full directory with many subdirectory levels and it works correctly 90% of the time. If I navigate manually to the same directory depth on remote and local machines so that the files being copied are less than 8 deep, it starts working correctly again which means that the log would show thousands of files that are correctly not being replaced before a file comes along that incorrectly gets replaced because it is 8 or more levels deep.
- This bug used to also happen in older versions before 'New and Updated Files Only' was added to the copy window
- Windows 7 Home Premium Version 6.1 (Build 7601: Service Pack 1)
- FTP transfer protocol
- Commander
- No errors
- I select a local directory on the left panel to copy to the remote server which has already had a full copy of the same directory copied to it on a previous date. The purpose of this is to do a backup of this directory, adding new files and replacing updated files, but not replacing files which are older on the local machine. This is what the 'New and Updated Files Only' selection is intended to do if I understand it correctly. This process works correctly for files that are a small number of directory levels deep but it fails when the files are around 8 levels deep and the time comparison no longer works correctly so it replaces files that are newer on the remote server. This also failed in older versions that did not have 'New and Updated Files Only' when identical file names were found and the 'File exists - Replace?' window came up and I clicked the 'Newer Only' button, essentially resulting in the same behaviour and it still has this problem if I use this technique when the 'New and Updated Files Only' checkbox is not ticked. I transfer using binary and exclude temporaries.
- Remote server is a Unix environment
- It is difficult to obtain a log file because I can only duplicate the problem by copying a full directory with many subdirectory levels and it works correctly 90% of the time. If I navigate manually to the same directory depth on remote and local machines so that the files being copied are less than 8 deep, it starts working correctly again which means that the log would show thousands of files that are correctly not being replaced before a file comes along that incorrectly gets replaced because it is 8 or more levels deep.