login about faq

Hi,

I can do sftp.CreateDir('A') to create folder 'A' successfully.

However, I want to use sftp.CreateDir('A/B/C/D') to create 'A/B/C/D' these 4 folders in one time, which A, B, C, D folders are not existed yet. But failed. So I am wondering, how I can achieve this operation?

thanks

Sam

asked Nov 19 '14 at 06:56

sam's gravatar image

sam
1114


If none of the folders exist, you would have to first create "A", then "A/B", then "A/B/C", and finally "A/B/C/D".

link

answered Nov 20 '14 at 11:40

chilkat's gravatar image

chilkat ♦♦
11.8k316358421

So there is no other function can create 4 subfolders in one time?

link

answered Nov 21 '14 at 03:57

sam's gravatar image

sam
1114

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:

×200
×3

Asked: Nov 19 '14 at 06:56

Seen: 679 times

Last updated: Nov 21 '14 at 03:57

powered by OSQA