729: FTP SetFile Timestamp not possible
Posted: 03.10.2016, 17:46
Hello,
I have a QNAP Nas with built-in ProFTP.
When i try to upload a file and check "Preserve file/folder timestamp" i get an error "SetFileTimestamp: 550 20160726203924 PremiumVoucher.pdf: No such file or directory".
In my FTP-log i can see the message "MDTM 20160726203924 PremiumVoucher.pdf 550".
When i do the same with Filezilla i see "MFMT 20160726183924 PremiumVoucher.pdf 213".
I think MDTM is the wrong command. It is used to return the last-modified time of a specified file and not to set the last-modified time. To set the time FC should use MFMT, which ProFTP understands.
See http://www.proftpd.org/docs/howto/FTP.html
MDTM
Short for MoDification TiMe, this command is used by the client to request the modification time of a file on the server. This command is defined formally in RFC 3659, and is a commonly implemented FTP command. Note that this command cannot be used to change the modification time of the file on the server; it only reports on the file's modification time. The MFMT command is used to change a file's modification time.
MFMT
Short for Modify Fact: Last Modified Time, supported by mod_facts. Some clients use this command to change the last modified timestamp on a newly uploaded file so that the timestamp on the server matches the timestamp of that file on the client.
Regards
K.Rotte
I have a QNAP Nas with built-in ProFTP.
When i try to upload a file and check "Preserve file/folder timestamp" i get an error "SetFileTimestamp: 550 20160726203924 PremiumVoucher.pdf: No such file or directory".
In my FTP-log i can see the message "MDTM 20160726203924 PremiumVoucher.pdf 550".
When i do the same with Filezilla i see "MFMT 20160726183924 PremiumVoucher.pdf 213".
I think MDTM is the wrong command. It is used to return the last-modified time of a specified file and not to set the last-modified time. To set the time FC should use MFMT, which ProFTP understands.
See http://www.proftpd.org/docs/howto/FTP.html
MDTM
Short for MoDification TiMe, this command is used by the client to request the modification time of a file on the server. This command is defined formally in RFC 3659, and is a commonly implemented FTP command. Note that this command cannot be used to change the modification time of the file on the server; it only reports on the file's modification time. The MFMT command is used to change a file's modification time.
MFMT
Short for Modify Fact: Last Modified Time, supported by mod_facts. Some clients use this command to change the last modified timestamp on a newly uploaded file so that the timestamp on the server matches the timestamp of that file on the client.
Regards
K.Rotte