ftp命令行下,为什么不能上传目录?

补充:
$ ll
total 1048
drwxrwxr-x  2 clt clt    4096 Jan 13 09:51 clt_job
-rw-rw-r--  1 clt clt 1054720 Feb 15 10:35 clt.tar
drwxr-xr-x  7 clt clt    4096 Jul 10  2015 etl
drwxr-xr-x 10 clt clt    4096 Jul  9  2015 ETL-SAMPLE

drwxrwxr-x  2 clt clt    4096 Oct 29 08:34 temp


ftp> put clt_job
local: clt_job remote: clt_job
clt_job: not a plain file.
ftp>
命令行下为何不可??

google后,有如下回答:
Command line FTP is pretty primitive.
You can't recursively send files/folders towards a remote site.
If you want to recreate a directory structure on the remote side the same as the local, you need to manually mkdir each path and use *mput ** to send everything in that directory to the remote side.

Two options to make this easier:
Stop using the primitive FTP command (ncftp is a good alternative)

Use tar to tar up the folders, send the file and extract on the far side.


翻译即为:

FTP命令行是非常原始的。
你不能递归发送文件/文件夹对远程站点。
如果你想重新在远程端一样的本地目录结构,你需要手动的mkdir每个路径和使用*** MPUT在该目录下所有发送到远程端。

两个选项来使它更容易些:
停止使用原始的FTP命令(的ncftp是一个很好的选择)
使用焦油焦油了文件夹,发送文件,并提取在另一边。


意思能看得懂就行了QAQ

----------------------
This is not possible with the normal ftp program as mput does not use recursion. You could use ncftp and then call 'mput -r folder'.
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值