FileSystemOperationsExtensions.DirectCreate Method (IFileSystemOperations, String, String, Stream, FileCreateParameters)

 

Directly creates a file with the specified content, without requiring a redirect. This API is NOT webhdfs compliant. It should be used only by tools that do not rely on webhdfs interoperability.

Namespace:   Microsoft.Azure.Management.DataLake.StoreFileSystem
Assembly:  Microsoft.Azure.Management.DataLake.StoreFileSystem (in Microsoft.Azure.Management.DataLake.StoreFileSystem.dll)

Syntax

public static AzureOperationResponse DirectCreate(
    this IFileSystemOperations operations,
    string filePath,
    string accountName,
    Stream streamContents,
    FileCreateParameters parameters
)
public:
[ExtensionAttribute]
static AzureOperationResponse^ DirectCreate(
    IFileSystemOperations^ operations,
    String^ filePath,
    String^ accountName,
    Stream^ streamContents,
    FileCreateParameters^ parameters
)
static member DirectCreate : 
        operations:IFileSystemOperations *
        filePath:string *
        accountName:string *
        streamContents:Stream *
        parameters:FileCreateParameters -> AzureOperationResponse
<ExtensionAttribute>
Public Shared Function DirectCreate (
    operations As IFileSystemOperations,
    filePath As String,
    accountName As String,
    streamContents As Stream,
    parameters As FileCreateParameters
) As AzureOperationResponse

Parameters

  • filePath
    Type: System.String

    Required. The path to the file to create.

  • accountName
    Type: System.String

    Required. The name of the Data Lake Store account to create the file in

  • streamContents
    Type: System.IO.Stream

    Required. The file contents to include when creating the file. This parameter is required, however it can be an empty stream. Just not null.

Return Value

Type: Microsoft.Azure.AzureOperationResponse

A standard service response including an HTTP status code and request ID.

See Also

FileSystemOperationsExtensions Class
Microsoft.Azure.Management.DataLake.StoreFileSystem Namespace

Return to top