Parameters
- directoryContents2
- The directory contents object that will perform the operation.
- includeFiles
- Specifies whether to include file objects in the returned tree.
Exception | Description |
---|---|
System.ArgumentNullException |
A This is a usage error, i.e. it will never occur (the exception will not be thrown) in a correctly written program. Your code should not catch this exception. |
A directory contents that supports IDirectoryContents2 is needed for browsing into subdirectories. If you only have Microsoft.Extensions.FileProviders.IDirectoryContents but also a Microsoft.Extensions.FileProviders.IFileProvider, you can use OpcLabs.BaseLib.Extensions.FileProviders.Internal.FileSystemNodeTreePositionExtension.Traverse.