Condividi tramite


FileSystemOperationsExtensions.GetFileStatusAsync Method

Definition

Get the file status object specified by the file path.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.DataLake.Store.Models.FileStatusResult> GetFileStatusAsync (this Microsoft.Azure.Management.DataLake.Store.IFileSystemOperations operations, string accountName, string getFilePath, bool? tooId = default, System.Threading.CancellationToken cancellationToken = default);
public static System.Threading.Tasks.Task<Microsoft.Azure.Management.DataLake.Store.Models.FileStatusResult> GetFileStatusAsync (this Microsoft.Azure.Management.DataLake.Store.IFileSystemOperations operations, string accountName, string path, bool? tooId = default, System.Threading.CancellationToken cancellationToken = default);
static member GetFileStatusAsync : Microsoft.Azure.Management.DataLake.Store.IFileSystemOperations * string * string * Nullable<bool> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.DataLake.Store.Models.FileStatusResult>
static member GetFileStatusAsync : Microsoft.Azure.Management.DataLake.Store.IFileSystemOperations * string * string * Nullable<bool> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.DataLake.Store.Models.FileStatusResult>
<Extension()>
Public Function GetFileStatusAsync (operations As IFileSystemOperations, accountName As String, getFilePath As String, Optional tooId As Nullable(Of Boolean) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of FileStatusResult)
<Extension()>
Public Function GetFileStatusAsync (operations As IFileSystemOperations, accountName As String, path As String, Optional tooId As Nullable(Of Boolean) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of FileStatusResult)

Parameters

operations
IFileSystemOperations

The operations group for this extension method.

accountName
String

The Azure Data Lake Store account to execute filesystem operations on.

getFilePathpath
String

The Data Lake Store path (starting with '/') of the file or directory for which to retrieve the status.

tooId
Nullable<Boolean>

An optional switch to return friendly names in place of owner and group. tooid=false returns friendly names instead of the AAD Object ID. Default value is true, returning AAD object IDs.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to