{"id":20,"date":"2014-04-14T14:59:07","date_gmt":"2014-04-14T12:59:07","guid":{"rendered":"http:\/\/www.lambiek.eu\/blog\/?p=20"},"modified":"2014-11-28T19:15:39","modified_gmt":"2014-11-28T18:15:39","slug":"ftp-mfmt","status":"publish","type":"post","link":"https:\/\/www.lambiek.eu\/blog\/tutorial\/ftp-mfmt\/","title":{"rendered":"FTP MFMT"},"content":{"rendered":"<p>Today I was faced with a question about modification dates (timestamps) on files uploaded using FTP. The server is running ProFTPd and according to their documentation the timestamp is always set to the uploaded time.<\/p>\n<p>Using the MFMT or SITE UTIME command a timestamp can be modified if the appropriate module is loaded. This post restricts to the MFMT method.<\/p>\n<p>To check wether the MFMT command is avaliable the following command can be used:<\/p>\n<pre class=\"lang:default decode:true \" >\r\nftp> quote FEAT\r\n<\/pre>\n<p>If MFMT is listed in the output the modification time can be set using:<\/p>\n<pre class=\"lang:default decode:true \" >\r\nftp> quote MFMT 20140101235959 path_to_file\r\n<\/pre>\n<p>References:<\/p>\n<p><a href=\"http:\/\/www.proftpd.org\/docs\/howto\/Timestamps.html\" target=\"_blank\">http:\/\/www.proftpd.org\/docs\/howto\/Timestamps.html<\/a><br \/>\n<a href=\"http:\/\/www.serv-u.com\/respcode.asp?prod=su&#038;cmd=MFMT\" target=\"_blank\">http:\/\/www.serv-u.com\/respcode.asp?prod=su&#038;cmd=MFMT<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today I was faced with a question about modification dates (timestamps) on files uploaded using FTP. The server is running ProFTPd and according to their documentation the timestamp is always set to the uploaded time. Using the MFMT or SITE UTIME command a timestamp can be modified if the appropriate module is loaded. This post &#8230; <span class=\"more\"><a class=\"more-link\" href=\"https:\/\/www.lambiek.eu\/blog\/tutorial\/ftp-mfmt\/\">[Read more&#8230;]<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[4],"tags":[7],"_links":{"self":[{"href":"https:\/\/www.lambiek.eu\/blog\/wp-json\/wp\/v2\/posts\/20"}],"collection":[{"href":"https:\/\/www.lambiek.eu\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.lambiek.eu\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.lambiek.eu\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lambiek.eu\/blog\/wp-json\/wp\/v2\/comments?post=20"}],"version-history":[{"count":8,"href":"https:\/\/www.lambiek.eu\/blog\/wp-json\/wp\/v2\/posts\/20\/revisions"}],"predecessor-version":[{"id":201,"href":"https:\/\/www.lambiek.eu\/blog\/wp-json\/wp\/v2\/posts\/20\/revisions\/201"}],"wp:attachment":[{"href":"https:\/\/www.lambiek.eu\/blog\/wp-json\/wp\/v2\/media?parent=20"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lambiek.eu\/blog\/wp-json\/wp\/v2\/categories?post=20"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lambiek.eu\/blog\/wp-json\/wp\/v2\/tags?post=20"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}