I am evaluating NetDrive to map to an Android SSH/SFTP server (https://play.google.com/store/apps/details?id=net.xnano.android.sshserver). When I upload files to the server, the modification time on the copies becomes the time of upload, rather than the modification time of the original file. Changing ‘ Use server time for files/folders’ in the drive’s SFTP options does not help.
Other SFTP clients, such as WebDrive, SFTP Drive, and Beyond Compare, preserve file modification times on uploads to this server (sometimes controlled by an option setting). However, they have other deficiencies for my usage.
Questions:
Could there be a setting I missed?
If not, can the problem be fixed for this server? I see similar problem reports for other servers.
Is there a way I can test a fix if it appears after my evaluation period has expired?
My guess is that the SFTP clients which set file modification time are using libssh2_sftp_fsync() to flush file metadata. Presumably the SFTP server I am using includes fsync@openssh.com support.
Thank you for looking into this. Now I wonder what WebDrive, ExpanDrive, and SFTP Drive use to set the file mod time correctly with the same Android SFTP server I am using.