Catalyst File Transfer .NET

FileTransfer.MakeDirectory Method 

Create a new directory on the server.

[Visual Basic]
Public Function MakeDirectory( _
   ByVal pathName As String _
) As Boolean
[C#]
public bool MakeDirectory(
   string pathName
);

Parameters

pathName
A string that specifies the name of the directory to create on the server. The naming and pathing conventions used for the directory must be compatible with what is used on the operating system that hosts the server.

Return Value

This method returns a boolean value. If the method succeeds, the return value is true. If the method fails, the return value is false. To get extended error information, check the value of the LastError property.

Remarks

Servers may not support creating multiple subdirectories in a single call, so applications should not assume that this can be done. For example, an error may be returned by the server if the new directory name "/Projects/Today" is specified, but the "/Projects" directory does not already exist.

It is also important to note that files and directories on UNIX based systems are case sensistive, so the directory names "Projects" and "projects" refer to two different directories. This is not the case on Windows systems, where either name would refer to the same directory.

See Also

FileTransfer Class | SocketTools Namespace