curl获取ftp服务器文件名称,使用cUrl从ftp中删除文件(示例代码)

我正在尝试从命令行中的ftp服务器中删除文件。它看起来像这样:

curl -v -O ftp://192.168.26.10/inbox/project/logs/video/super_user_2017-09-25_19-20-27.webm -Q 'DELE inbox/project/logs/video/super_user_2017-09-25_19-20-27.webm'

该文件被删除但输出看起来很奇怪,据我所知curl返回错误。所以输出:

< 220 NASFTPD Turbo station 1.3.5a Server (ProFTPD)

> USER anonymous

< 331 Anonymous login ok, send your complete email address as your password

> PASS ftp@example.com

< 230 Anonymous access granted, restrictions apply

> PWD

0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0< 257 "/" is the current directory

* Entry path is '/'

> DELE inbox/project/logs/video/super_user_2017-09-25_19-20-27.webm

* ftp_perform ends with SECONDARY: 0

< 250 DELE command successful

> CWD inbox

< 250 CWD command successful

> CWD

  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值