Namespace:
Rebex.Net
Assembly:
Rebex.Ftp (in Rebex.Ftp.dll)
Syntax
Visual Basic |
---|
Public Function BeginCreateDirectory ( _ remotePath As String, _ callback As AsyncCallback, _ state As Object _ ) As IAsyncResult |
C# |
---|
public IAsyncResult BeginCreateDirectory( string remotePath, AsyncCallback callback, Object state ) |
Parameters
- remotePath
- Type: System..::..String
Pathname of the new remote directory.
- callback
- Type: System..::..AsyncCallback
An optional asynchronous callback to be called when the operation is complete.
- state
- Type: System..::..Object
A user-provided object that identifies this particular asynchronous operation.
Return Value
An IAsyncResult that references the asynchronous operation.Remarks
Represents FTP MKD command.
CAUTION: RFC states that successful reply to the 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 this bug). Therefore, when the response is unparsable, this method returns a null reference instead of throwing an exception.
In builds for .NET 4.0 and higher, this method is available as an extension method. Add 'using Rebex.Legacy' (C#) or 'Import Rebex.Legacy' (VB.NET) to your code in order to use it.