大家好,在LINUX上使用FTP上传文件时候,一定要cd上传文件所在目录才能上传么?直接写文件绝对路径就无法上传,除非 FTP也有对应的目录比如我FTP已经登入了
ftp> put /movies/vod/test.ts
local: /movies/vod/201804281950023954d80d061.ts remote: /movies/vod/201804281950023954d80d061.ts
227 Entering Passive Mode (192,168,254,2,180,21.
553 Could not create file.
---这个回报 553错误但是如果我先 lcd /movies/vod/  在执行put test.ts   上传就正常或者 我先把FTP目录建好 也能put
ftp> mkdir /movies/
257 "/movies/" created
ftp> mkdir /movies/vod
257 "/movies/vod" createdftp>put /movies/vod/test.ts
227 Entering Passive Mode (192,168,254,2,161,23).
150 Ok to send data
有没有办法可以让我 直接put /xx/xx/xx/file 上传完毕后,在ftp服务器也形成对应的目录解构 /xx/xx/xx/file
而不需要 手工在 mkdir多级目录