\r
this.sendCommand( "CWD " + dirName );\r
\r
- if ( this.resultCode != 250 ) throw new FtpException(result.Substring(4));\r
+ if ( this.resultCode != 250 )\r
+ {\r
+ if (this.resultCode == 550)\r
+ throw new FtpException(String.Format("Access denied to {0}", this.remotePath + "/" + dirName));\r
+ throw new FtpException(result.Substring(4));\r
+ }\r
\r
this.sendCommand( "PWD" );\r
\r