IFilesService.GetDirectoriesAsync(String, Boolean, CancellationToken) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Get directories from a sub path
public:
System::Threading::Tasks::Task<System::Collections::Generic::IReadOnlyCollection<System::String ^> ^> ^ GetDirectoriesAsync(System::String ^ path, bool recursive, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyCollection<string>> GetDirectoriesAsync (string path, bool recursive, System.Threading.CancellationToken cancellationToken);
abstract member GetDirectoriesAsync : string * bool * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyCollection<string>>
Public Function GetDirectoriesAsync (path As String, recursive As Boolean, cancellationToken As CancellationToken) As Task(Of IReadOnlyCollection(Of String))
Parameters
- path
- String
The relative sub path to look for directories
- recursive
- Boolean
If recursive is needed
- cancellationToken
- CancellationToken
Cancellation token
Returns
Collection of rooted directory paths