Archived Forum Post

Index of archived forum posts

Question:

SFTP CreateDir Problem: can't create several subfolders in one time

Nov 21 '14 at 03:57

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


Answer

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".


Answer

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