CloudFileDirectory.listFilesAndDirectories Method

Definition

Overloads

listFilesAndDirectories()

Returns an enumerable collection of file and directory items for the directory.

listFilesAndDirectories(FileRequestOptions options, OperationContext opContext)

Returns an enumerable collection of file and directory items for the directory.

listFilesAndDirectories(String prefix, FileRequestOptions options, OperationContext opContext)

Returns an enumerable collection of file and directory items for the directory.

listFilesAndDirectories()

Returns an enumerable collection of file and directory items for the directory.

public Iterable<ListFileItem> listFilesAndDirectories()

Returns

Iterable<ListFileItem>

An enumerable collection of ListFileItem objects that represent the file and directory items in this directory.

listFilesAndDirectories(FileRequestOptions options, OperationContext opContext)

Returns an enumerable collection of file and directory items for the directory.

public Iterable<ListFileItem> listFilesAndDirectories(FileRequestOptions options, OperationContext opContext)

Parameters

options
FileRequestOptions

A FileRequestOptions object that specifies any additional options for the request. Specifying null will use the default request options from the associated service client ( CloudFileClient).

opContext
OperationContext

An OperationContext object that represents the context for the current operation. This object is used to track requests to the storage service, and to provide additional runtime information about the operation.

Returns

Iterable<ListFileItem>

An enumerable collection of ListFileItem objects that represent the file and directory items in this directory.

listFilesAndDirectories(String prefix, FileRequestOptions options, OperationContext opContext)

Returns an enumerable collection of file and directory items for the directory.

public Iterable<ListFileItem> listFilesAndDirectories(String prefix, FileRequestOptions options, OperationContext opContext)

Parameters

prefix
String

A string containing the file or directory name prefix.

options
FileRequestOptions

A FileRequestOptions object that specifies any additional options for the request. Specifying null will use the default request options from the associated service client ( CloudFileClient).

opContext
OperationContext

An OperationContext object that represents the context for the current operation. This object is used to track requests to the storage service, and to provide additional runtime information about the operation.

Returns

Iterable<ListFileItem>

An enumerable collection of ListFileItem objects that represent the file and directory items in this directory.

Applies to