LFTP mkdir -p doesn't work with sftp protocol?

a 夏天 提交于 2019-12-11 13:54:23

问题


here is the server directory structure:

/tmp/a

and I can only connect to the server with sftp

Now I want to mkdir first, and then upload some files into it.

mkdir -p /tmp/a/b works, but mkdir -p /tmp/a/b/c/d/e/f/g doesn't.

I think the param -p is for this situation, anything wrong? Thanks!


回答1:


New version lftp support mkdir -p with sftp protocal.




回答2:


mput -d some/path/file.txt

Create directories the same as in file names and put the files into them.



来源:https://stackoverflow.com/questions/4171236/lftp-mkdir-p-doesnt-work-with-sftp-protocol

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!