FTP命令---MFMT

Overview

The MFMT (Modify Fact:Modification Time) command provides the ability to modify the last modification time (GMT) for a file on the server. When specifying the date/time information, it must be in the following format:

 

YYYYMMDDHHXXSS

 

Y - four digit year

M - two digit month

D - two digit day of the month

H - two digit hour (0..23)

X - two digit minute (0..59)

S - two digit second (0..59)

 

Format 

MFMT YYYYMMDDHHXXSS <name><crlf> (sets the date/time for the file)

 

Returns

213 - Command successful.

421 - The server is off-line or is going off-line.

501 - Syntax error in parameters or arguments. This usually results from an invalid or missing file name.

502 - Command not implemented. This will be returned if MDTM support is not enabled on the server.

530 - No user is currently authenticated on the command channel.

553 - File name not allowed, or file type banned.

 

 

概观

 

MFMT (修改情况:修改时间)命令提供了修改服务器上的文件的最后修改时间(GMT)的能力。在指定的日期/时间信息,它必须是以下格式:

YYYYMMDDHHXXSS

 

Ÿ -四个数字的年份

M -两位一个月

ð -两个月份的数字一天

Ĥ -两位数小时(0 .. 23)

X -两位数分钟(0 .. 59)

S -两位数的第二个(0 .. 59)

 

格式

 

MFMT YYYYMMDDHHXXSS <name>的<CRLF>(设置文件的日期/时间)

 

 

返回

 

213 -命令成功。

 

421 -服务器脱机或脱线。

 

501 -在参数中有语法错误。这通常会导致无效或丢失的文件名 。

 

502 -命令未被执行。这将返回MDTM支持在服务器上没有启用。

 

530 -目前没有用户身份验证的命令通道上。

 

553 -文件名 不允许或禁止的文件类型。

转载于:https://www.cnblogs.com/zhujiecode/archive/2012/07/10/2584221.html

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值