Method
FileAt
abstract virtual func FileAt(name: string) -> Result<File, StorageLookupError>
Declaring type: Directory
Module: System.Storage
Assembly: System.Runtime.dll
Source file: StorageItems.rvn
Defined by Directory.FileAt · Required implementation (no default).
Interface implementation: Required implementation (no default).
Constructs a direct-child file address without performing I/O.
Parameters
| Name | Type | Description |
|---|---|---|
name |
String | One nonempty child name, excluding separators, dot/parent segments and other invalid Path characters. |
Return value
Result<File, StorageLookupError>
A File using this provider, or StorageLookupError.InvalidPath.
Remarks
Use this for a future destination. It does not check existence, open a stream or create a file. The error family is StorageLookupError rather than the earlier sample FileReadError.