I am using edtftp.net to connect to my Playstation2 using execftp, a FTP server that runs on the PS2 which is based on
ps2ftpd.
This particular FTP server does not require a password, when sending "USER username" it replies directly with a "230" code. I don't know if this is valid as per the FTP RFC but I needed it to work so I modified the FTPClient.Login method to handle this case. Here is the code :
public void Login(string user, string password)
{
string response = control.SendCommand("USER " + user);
lastValidReply = control.ValidateReply(response, new string[] { "331", "230" });
// If login ok, no need to send password
if(lastValidReply.ReplyCode == "331")
{
response = control.SendCommand("PASS " + password);
lastValidReply = control.ValidateReply(response, "230");
}
}
Great library BTW, thanks a lot for making it open source !
Nidhogg