FTP get 文件時使用絕對路徑報錯

ftp 連接後,可以cd 到目標目錄get 文件,但使用get /path/file 時報錯,  local. /path/file  不存在

 

原因是ftp的get語法爲

Syntax: get remote-file [local-file]

Parameter(s):

remote-file - Specifies the remote file to copy.

local-file - Specifies the name to use on the local computer. If not specified, the file is given the remote-file name.

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章