Rebex FTP for .NET

Ftp.EndCreateDirectory Method 

Ends a pending asynchronous directory creation.

public string EndCreateDirectory(
   IAsyncResult asyncResult
);

Parameters

asyncResult
Stores state information for this asynchronous operation as well as any user defined data.

Return Value

A string containing the absolute path of the newly created remote directory if the server complies to RFC 959; otherwise, null reference is returned.

Remarks

CAUTION: RFC959 states that the successful reply to MKD command must always contain the absolute path of the created directory. However, many FTP servers do not comply to this requirement, for example wu-ftpd 2.4.2, which is still widely used, although newer releases fixed the problem. Therefore, when the response is unparsable, this method returns null reference instead of throwing an exception.

See Also

Ftp Class | Rebex.Net Namespace