Share via


DataLakeStoreFileSystemClient.CreateFile Method

Definition

Creates a file in ADL store

public void CreateFile (string filePath, string accountName, byte[] contents = default, Microsoft.Azure.DataLake.Store.IfExists overwrite = Microsoft.Azure.DataLake.Store.IfExists.Overwrite);
member this.CreateFile : string * string * byte[] * Microsoft.Azure.DataLake.Store.IfExists -> unit
Public Sub CreateFile (filePath As String, accountName As String, Optional contents As Byte() = Nothing, Optional overwrite As IfExists = Microsoft.Azure.DataLake.Store.IfExists.Overwrite)

Parameters

filePath
String

File Path

accountName
String

Account name

contents
Byte[]

Contents

overwrite
IfExists

True if we are overwriting the file if it exists, false if we want to fail if the file exists

Applies to