Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这是服务器目录结构:
/tmp/a
我只能用 sftp 连接到服务器
现在我想先 mkdir,然后将一些文件上传到其中。
mkdir -p /tmp/a/b 有效,但 mkdir -p /tmp/a/b/c/d/e/f/g 无效。
我认为参数 -p 是针对这种情况的,有什么问题吗?谢谢!
New version lftp support mkdir -p with sftp protocal.
mkdir -p
mput -d some/path/file.txt
Create directories the same as in file names and put the files into them.