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

Questions, glitches, bugs and crashes
Locked
vladimirk
Posts: 2
Joined: Sat Oct 07, 2017 9:29 am

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

Post by vladimirk » Sat Oct 07, 2017 9:51 am

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)

User avatar
mike
Posts: 1060
Joined: Thu Jul 16, 2015 5:35 am
Location: Exeter, UK

Re: Wrong time for copied to sftp/smb files

Post by mike » Tue Oct 10, 2017 2:45 pm

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.

User avatar
mike
Posts: 1060
Joined: Thu Jul 16, 2015 5:35 am
Location: Exeter, UK

Re: Wrong time for copied to sftp/smb files

Post by mike » Fri Oct 20, 2017 12:22 pm

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.

vladimirk
Posts: 2
Joined: Sat Oct 07, 2017 9:29 am

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

Post by vladimirk » Tue Dec 12, 2017 6:48 pm

Hi, Mike

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

Locked