/// <summary> /// Test the existence of a file or directory object specified by the file path. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='accountName'> /// The Azure Data Lake Store account to execute filesystem operations on. /// </param> /// <param name='getFilePath'> /// The Data Lake Store path (starting with '/') of the file or directory for /// which to test the existence of. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <bool> PathExistsAsync(this IFileSystemOperations operations, string accountName, string getFilePath, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.PathExistsWithHttpMessagesAsync(accountName, getFilePath, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }