Core.GetFileStatusAsync Method

Definition

Gets meta data like full path, type (file or directory), group, user, permission, length,last Access Time,last Modified Time, expiry time, acl Bit, replication Factor

public static System.Threading.Tasks.Task<Microsoft.Azure.DataLake.Store.DirectoryEntry> GetFileStatusAsync (string path, Microsoft.Azure.DataLake.Store.UserGroupRepresentation? userIdFormat, Microsoft.Azure.DataLake.Store.AdlsClient client, Microsoft.Azure.DataLake.Store.RequestOptions req, Microsoft.Azure.DataLake.Store.OperationResponse resp, System.Threading.CancellationToken cancelToken = default, bool getConsistentFileLength = false);
static member GetFileStatusAsync : string * Nullable<Microsoft.Azure.DataLake.Store.UserGroupRepresentation> * Microsoft.Azure.DataLake.Store.AdlsClient * Microsoft.Azure.DataLake.Store.RequestOptions * Microsoft.Azure.DataLake.Store.OperationResponse * System.Threading.CancellationToken * bool -> System.Threading.Tasks.Task<Microsoft.Azure.DataLake.Store.DirectoryEntry>
Public Shared Function GetFileStatusAsync (path As String, userIdFormat As Nullable(Of UserGroupRepresentation), client As AdlsClient, req As RequestOptions, resp As OperationResponse, Optional cancelToken As CancellationToken = Nothing, Optional getConsistentFileLength As Boolean = false) As Task(Of DirectoryEntry)

Parameters

path
String

Path of the file or directory

userIdFormat
Nullable<UserGroupRepresentation>

Way the user or group object will be represented

client
AdlsClient

ADLS Client

req
RequestOptions

Options to change behavior of the Http request

resp
OperationResponse

Stores the response/ouput of the Http request

cancelToken
CancellationToken

CancellationToken to cancel the request

getConsistentFileLength
Boolean

True if we want to get updated length.

Returns

Returns the metadata of the file or directory

Applies to