login about faq

While creating Folder to FTP, i am getting this error 550 The system cannot find the path specified

And strange is, sometimes it creates the folder and some time not

I am using following code objFTP.CreateRemoteDir(DirectoryName)

Where DirectoryName is "/ABC/xyz"

asked Mar 31 '16 at 03:44

darshan's gravatar image


Please post the contents of the LastErrorText property immediately after you call CreateRemoteDir.

(Mar 31 '16 at 07:48) jpbro ♦

If /ABC is not yet created, then create it first. Then create "/ABC/xyz". Different FTP servers have different behavior w.r.t. things like this. Some will automatically create the missing subdirs, others will not. Some might require the current working directory to be in the given directory. The safest way to do this is to create "ABC" if it does not exist (or just create it and ignore the error if any), then ChangeRemoteDir to ABC, then create "xyz".


answered Apr 02 '16 at 14:26

chilkat's gravatar image

chilkat ♦♦

Thanks...I did the same way you explained...

(Apr 04 '16 at 00:23) darshan
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: Mar 31 '16 at 03:44

Seen: 7,030 times

Last updated: Apr 04 '16 at 00:23

powered by OSQA