Closed MihaIvan closed 2 months ago
So: a file from the remote server is downloaded to your local client.
If a LIST command is issued to the server, the output will be parsed and things like size, date etc. will be populated into a returned data structure. This parsing is done in a fashion specific to the servers quirks. It might or might not contain all information that other servers provide.
But generally, for a file download/upload, FluentFTP currently does not attempt to acquire the remote/local files meta data (creation date, modified date, permissions, ownership etc. etc.) and thus also does not attempt to set these after writing the file locally/remotely.
This behaviour is not specific to z/OS. It is thus for all server types.
The only strange thing you might like to investigate, is
After downloading the file, the Date Modified is 5/15/2000
FluentFTP certainly did not set that.
OK, this is weird. That last Win 11 update really messed things up. First, I had to abandon the native Win FTP because it killed being able to transfer files. Operating in Passive mode is not supported, so it just fails. I have been transferring to an external share drive. Up until this last release, the date modified was working fine. Now when files are put on the drive, the all the dates get corrupted. Local drive is fine.
So I think we can close this problem because it is a Windows problem not yours. Thanks.
I will be happy if you report your further results investigating this. But note: FTP itself does not pass this meta file information - and "primitive" clients do not try to replicate these. One could try to implement this, and FluentFTP would actually give you the means to do this. But consider the needed logic, especially if you go beyond dates for creation, modification and last read-access, to replicate ACLs and permissions etc. It was never the purpose if FTP initially, although some extensions tried to go in that direction.
FTP Server OS: IBM zOS
FTP Server Type: IBM CS FTP (z/OS, OS/400)
Client Computer OS: Windows 11
FluentFTP Version: 51.0.0.0
Framework: .NET 8
The file I downloaded was created and modified on 8/24/2024. The Date Modified for the file being replaced was 8/14/2024. After downloading the file, the Date Modified is 5/15/2000.
Logs : The logs below are from logging to the console. I was writing to the console as well, so there are extra messages.