Returns an array of S3FileInfos for the files in this directory.

C# |
public S3FileInfo[] GetFiles( string searchPattern, SearchOption searchOption )

- searchPattern (String)
- The search string. The default pattern is "*", which returns all files.
- searchOption (SearchOption)
- One of the enumeration values that specifies whether the search operation should include only the current directory or all subdirectories. The default value is TopDirectoryOnly.

An array of files that matches searchPattern and searchOption.

Exception | Condition |
---|---|
WebException | |
AmazonS3Exception |