Page 1 of 1

Wrong time for copied to sftp/smb files [FIXED]

Posted: Sat Oct 07, 2017 9:51 am
by vladimirk
Copied/moved single/multiple files to sftp or network (smb) folder have incorrect time and date (now instead of original).
Just for check: midnight commander haven't this issue for same folders and protocols.
Version 1.2.2 (2449)

Re: Wrong time for copied to sftp/smb files

Posted: Tue Oct 10, 2017 2:45 pm
by mike
Hi vladimirk and welcome to the forum!

Yes, copying/moving operations on VFS don't adjust time at this moment. (partially that's because up until v1.2.2 no VFS supported alteration of timestamps)
Thanks for pointing at the issue, will add it.

As for SMB connections - that's strange, since NC treats SMB/AFP/NFS/whatever connections as usual mounts, i.e. it uses the same routines as for HFS/APFS/NTFS/etc.
I currently don't have any NAS nearby, will check it next week.

Re: Wrong time for copied to sftp/smb files

Posted: Fri Oct 20, 2017 12:22 pm
by mike
Ok, I've checked what's going on with SMB connections.
Apparently the SMB filesystem driver behaves slightly differently comparing to HFS/APFS drivers.
That lead to the situation when creation timestamp was adjusted properly and modification time was set to current time.
I added a separate logic for remote filesystems, the fix will be available in the next preview build.

Re: Wrong time for copied to sftp/smb files [FIXED]

Posted: Tue Dec 12, 2017 6:48 pm
by vladimirk
Hi, Mike

I've checked v1.2.3 and I confirm smb/sftp file timestamp is correct now.
Thank you very much.