GetFile
Declaring type: Directory
Module: System.Storage
Assembly: System.Runtime.dll
Source file: StorageItems.rvn
Overloads / Variants
GetFile
abstract virtual func GetFile(name: string) -> Result<File, StorageLookupError>
Source file: StorageItems.rvn
Defined by Directory.GetFile · Required implementation (no default).
Interface implementation: Required implementation (no default).
Validates one child name and explicitly looks up its file.
Parameters
| Name | Type | Description |
|---|---|---|
name |
String | One direct child name, not a relative path containing separators. |
Return value
Result<File, StorageLookupError>
A provider-bound File, InvalidPath for an invalid name, or the provider lookup error unchanged.
Remarks
Equivalent to resolving FileAt and querying StorageProvider.GetFile; it owns no stream.
GetFile
abstract virtual func GetFile(relativePath: Path) -> Result<File, StorageLookupError>
Source file: StorageItems.rvn
Defined by Directory.GetFile · Required implementation (no default).
Interface implementation: Required implementation (no default).
Resolves a relative logical path in this directory and looks up its file.
Parameters
| Name | Type | Description |
|---|---|---|
relativePath |
Path | Relative Path; nested segments are supported, absolute inputs are rejected. |
Return value
Result<File, StorageLookupError>
A provider-bound File, InvalidPath for an absolute input, or the provider lookup error unchanged.
Remarks
Dot queries this directory address as a file, normally WrongKind. Resolution preserves the provider and prefix; it does not normalize, enforce parent existence or create a security sandbox.