Share via


MockAdlsClient.CreateFile(String, IfExists, String, Boolean) Method

Definition

Creates an entry to the internal dictionary for the new file. The entry encapsulates AclStatus, DirectoryEntry and a memory stream

public override Microsoft.Azure.DataLake.Store.AdlsOutputStream CreateFile (string filename, Microsoft.Azure.DataLake.Store.IfExists mode, string octalPermission = default, bool createParent = true);
override this.CreateFile : string * Microsoft.Azure.DataLake.Store.IfExists * string * bool -> Microsoft.Azure.DataLake.Store.AdlsOutputStream
Public Overrides Function CreateFile (filename As String, mode As IfExists, Optional octalPermission As String = Nothing, Optional createParent As Boolean = true) As AdlsOutputStream

Parameters

filename
String

File name

mode
IfExists

If exists hether to overwrite or fail

octalPermission
String

Permission string

createParent
Boolean

True if we create parent directories- currently has no effect

Returns

Mock ADls output stream

Applies to