IStorageProviderTryGetFolderFromPathAsync Method
Attempts to read folder from the file-system by its path.
Namespace: Avalonia.Platform.StorageAssembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
Task<IStorageFolder?> TryGetFolderFromPathAsync(
Uri folderPath
)
Function TryGetFolderFromPathAsync (
folderPath As Uri
) As Task(Of IStorageFolder)
abstract TryGetFolderFromPathAsync :
folderPath : Uri -> Task<IStorageFolder>
- folderPath Uri
- The path of the folder to retrieve in Uri format.
TaskIStorageFolderFolder or null if it doesn't exist.
Uri path is usually expected to be an absolute path with "file" scheme.
But it can be an uri with "content" scheme on the Android.
It also might ask user for the permission, and throw an exception if it was denied.