ftp的问题,救命呀!老大逼着马上要东东!救我!
///
/// Change the current working directory on the remote FTP server.
///
public void chdir(string dirName)
{
if(dirName.Equals("."))
{
return;
}
if(!logined)
{
login();
}
sendCommand("CWD "+dirName);
if(retValue != 250)
{
throw new IOException(reply.Substring(4)); (这里出错!)
}
this.remotePath = dirName;
Console.WriteLine("Current directory is "+remotePath);
}
出错显示为: "550 CWD failed. No permission\r" (请问,这应该是什么问题?)