MakeDirectory problem

Discussion of open issues, suggestions and bugs regarding network security and data protection solution - SecureBridge
Post Reply
Kupe3
Posts: 5
Joined: Sun 14 Dec 2008 12:29

MakeDirectory problem

Post by Kupe3 » Tue 19 Jul 2011 15:37

if i try to create /folderA/folderB and folderA doesnt exist, i get error.
How can i create such folder?

if directory exists (folderA) and i try create it i get error

i tried to check if a folder exists using CheckFile (i couldnt fine CheckDirectory or such method) but it gives me error when i try to find if /folderA exists.

Any thoughts how can i solve this?

thanks

Kupe3
Posts: 5
Joined: Sun 14 Dec 2008 12:29

i forgot to mention this is related to SFTP component

Post by Kupe3 » Tue 19 Jul 2011 15:38

i forgot to mention this is related to SFTP component

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Fri 22 Jul 2011 08:43

The possibility to create /folderA/folderB depends on your SFTP server, but most SFTP servers don't provide it.
You can check if the directory exists using the TScSFTPClient.OpenDirectory method. If the directory doesn't exist, this method will raise the corresponding error.
There is no other way to check if a directory exists using SFTP protocol.

Post Reply