-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Neither method after Connect and Login works #8
Comments
server sent multiline response with blank line before
This line break reading lines when match blank line https://github.com/dutchcoders/goftp/blob/master/ftp.go#L282 when then you send Cwd you recive unexpexted 230 FTP.FU-Berlin.DE login ok. That's why :) |
@VincenzoLaSpesa why did you skip response lines with len <4 ? |
Because the ftp standard says that a response should begin with 3 digit, than a space, then the message as a string. Try your server with You'll get an:
That server is not standard. I'll try to make it work on my fork (https://github.com/VincenzoLaSpesa/goftp) |
rewrite multiline code to fix dutchcoders#8
All these methods throw 230 error:
ftp.Cwd("/")
ftp.Pwd()
ftp.List("/")
I want to connect to IMDB ftp,
ftp://ftp.fu-berlin.de
. I'm trying to use your package.Here is an example of the error:
Here is my code, just a copy/paste of your example:
What do I do wrong? Why I cannot get an access to ftp server and see and download its contents?
The text was updated successfully, but these errors were encountered: