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

2019-07-23 16:19发布

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!

标签: ftp mkdir
2条回答
姐就是有狂的资本
2楼-- · 2019-07-23 16:36
mput -d some/path/file.txt

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

查看更多
看我几分像从前
3楼-- · 2019-07-23 16:39

New version lftp support mkdir -p with sftp protocal.

查看更多
登录 后发表回答