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 at 03:44

darshan's gravatar image

darshan
31

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

(Mar 31 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".

link

answered Apr 02 at 14:26

chilkat's gravatar image

chilkat ♦♦
11.8k316358421

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

(Apr 04 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

By RSS:

Answers

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

Tags:

×131
×10
×2

Asked: Mar 31 at 03:44

Seen: 1,126 times

Last updated: Apr 04 at 00:23

powered by OSQA