MakeDir() Method

See Also

FtpDLX Class  | FtpDLX Members  | Overload List

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Language

Visual Basic

C#

JScript

Show All

See Also Requirements Languages WeOnlyDo.Client.FTP Send comments on this topic.

MakeDir() Method

Creates directory on the server.

[Visual Basic]
Overloads Public Sub MakeDir()
[C#]
public void MakeDir();
[JScript]
public function MakeDir();

Remarks

This method will create directory on remote server, if possible. Once completed, Done event will be fired. If no error occurs, Args.Error argument in Done event will be set to null (Nothing in VB). If error occurred, Args.Error will contain description of the error.

By definition, you should not expect from server to create directories recursively. In other words, if you specify something like

"/tmp/test/a/b/c"

for RemotePath, and directory

"/tmp/test"

does not exist - most probably you will get an error from the server. However - it is possible that some server-side implementations also support this feature.

No wildcards can be used for RemotePath argument. RFC protocol specifications for FTP or SFTP do not allow them.

Do not forget that RemotePath should always specify full absolute path (i.e. /home/joe/something) instead of relative path (i.e. joe/something).

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

FtpDLX Class  | FtpDLX Members  | Overload List

 

 


© WeOnlyDo Software. All Rights Reserved.