windows Filezilla FTP 服务器 - 从客户端更改目录失败(命令提示符,java)

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/7676649/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 18:12:18  来源:igfitidea点击:

Filezilla FTP server - change directory gets failed from client (command-prompt, java)

windowsftpcommand-promptfilezillaftp-server

提问by Balu

I had setup Filezilla FTP server in my PC and tried to ftp from local machine itself. I could connect, transfer files ,but couldn't change the remote directory.

我在我的 PC 上设置了 Filezilla FTP 服务器并尝试从本地机器本身进行 ftp。我可以连接,传输文件,但无法更改远程目录。

By default it lands on home directory( D:/FTP) and can change (cd) to sub-directories under the home directory.. however i need to access the folders/files outside (D:/test) the home directory any suggestions?

默认情况下,它位于主目录(D:/FTP)上,并且可以更改(cd)到主目录下的子目录..但是我需要访问主目录之外的文件夹/文件(D:/test)任何建议?

D:\FTP>ftp localhost
Connected to XXXXXX.
220-FileZilla Server version 0.9.39 beta
220 xxxx ftp server
User (XXXXXXX:(none)): xsds
331 Password required for xsxs
Password:
230 Logged on
ftp> pwd
257 "/" is current directory.
ftp> cd D:
**550 CWD failed. "/D:": directory not found.**
ftp>

回答by raphinesse

With FTP you can not change to a directory that is outside your home directory. If you need access to other files change your home directory accordingly.

使用 FTP,您不能更改到主目录之外的目录。如果您需要访问其他文件,请相应地更改您的主目录。