Enumerate the sub directories of this directory.
Declaration Syntax
C# |
public IEnumerable<S3DirectoryInfo> EnumerateDirectories( string searchPattern, SearchOption searchOption )
Parameters
- searchPattern (String)
- The search string. The default pattern is "*", which returns all directories.
- 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.
Return Value
An enumerable collection of directories that matches searchPattern and searchOption.
Exceptions
Exception | Condition |
---|---|
WebException | |
AmazonS3Exception |