补充:
$ 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
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)
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'.
$ 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
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'.