Question:
Why do I get this error? Here is my code snippet:
success = ftp.CreateRemoteDir("/test/update");
ChilkatLog: CreateRemoteDir: DllDate: Jun 23 2016 ChilkatVersion: 9.5.0.58 UnlockPrefix: anything Architecture: Little Endian; 32-bit Language: Visual C++ 11.0 (32-bit) VerboseLogging: 1 dir: /test/update createRemoteDir: simplePathCommand: simpleCommand: sendCommand: sendingCommand: MKD /test/update --sendCommand readCommandResponse: replyLineQP: 550 Create directory operation failed. commandResponse: 550 Create directory operation failed. statusCode: 550 --readCommandResponse --simpleCommand Simple path command failed. statusCode: 550 reply: 550 Create directory operation failed. --simplePathCommand --createRemoteDir Failed. --CreateRemoteDir --ChilkatLog
There are several reasons why the above code failed.
// First try changing the remote directory to "test" success = true; if (!ftp.ChangeRemoteDir("test")) { success = ftp.CreateRemoteDir("test"); if (success) success = ftp.ChangeRemoteDir("test"); if (!success) { printf("%s\n",ftp.lastErrorText()); return false; } } // Now create the directory "update" (which will be located within the "test" // subdirectory because we've changed the current remote directory to "test") success = ftp.CreateRemoteDir("update"); if (!success) { printf("%s\n",ftp.lastErrorText()); return false; }