Method
GetFile
abstract virtual func GetFile(path: Path) -> Result<File, StorageLookupError>
Declaring type: StorageProvider
Module: System.Storage
Assembly: System.Runtime.dll
Source file: StorageProvider.rvn
Defined by StorageProvider.GetFile · Required implementation (no default).
Interface implementation: Required implementation (no default).
Looks up an existing file and returns its provider-bound descriptor.
Parameters
| Name | Type | Description |
|---|---|---|
path |
Path | Validated logical file address. |
Return value
Result<File, StorageLookupError>
A File retaining this provider and address, or StorageLookupError such as NotFound, WrongKind, AccessDenied, InvalidPath or IoFailure.
Remarks
Must not create the file or retain an open stream. Provider-specific aliases and concurrent changes do not establish stable item identity.