Commands: BrowseAsync

The BrowseAsync method is used to scan a file system for existing files.

Syntax

Task<FileHeader[]> BrowseAsync(int start = 0, int pageSize = 1024);
Parameters
start int The number of files that will be skipped
pageSize int The maximum number of file headers that will be retrieved (default: 1024)

Return Value
Task<FileHeader[]> A task that represents the asynchronous browse operation. The task result is the array of FileHeaders.

Example

start = 0;
pageSize = 10;
FileHeader[] fileHeaders;

do
{
	fileHeaders = await store
		.AsyncFilesCommands
		.BrowseAsync(start, pageSize);

	start += pageSize;

} while (fileHeaders.Length == pageSize);