How to creating directories on remote sftp server by using com library

Advertisement

mrstone
Joined:
Posts:
2
Location:
377-53,Shindang dong, Jung-Gu, Seoul, Korea

How to creating directories on remote sftp server by using com library

Hello !!

I want to create directories - "/home/123/456/789/"


but, when remote server Root directory is "/" and current conneted directory is "/", session.CreateDirectoy("/home/123/456/789/") is Error !!

and, when remote server Root directory is "/" and current conneted directory is "/", if directory "/123" is exist then session.CreateDirectoy("/123") is Error !!

when remote server Root directory is "/" and current conneted directory is "/", If I want to creating directories - "/home/123/456/789/" then How to useing com library ??? :cry:

Reply with quote E-mail

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,441
Location:
Prague, Czechia

Re: How to creating directories on remote sftp server by using com library

There's no way to create a recursive remote path in one call.
If you do not even know what path components exists in advance, you have to iterate the components one by one, testing their existence (.FileExists) and create if they do not.

Reply with quote

Advertisement

You can post new topics in this forum