Development · Native API migration preview · Coverage validation in progress Published release →

API Browser

Method

GetDirectory

func GetDirectory(path: Path) -> Result<Directory, StorageLookupError>

Declaring type: FileSystem
Module: System.Storage
Assembly: System.Runtime.dll
Source file: FileSystem.rvn

Implements StorageProvider.GetDirectory

Resolves a logical address to the Directory interface.

Parameters

Name Type Description
path Path Validated logical address; absolute logical paths are mapped beneath the configured root.

Return value

Result<Directory, StorageLookupError>

A provider-owned Directory, or StorageLookupError preserving missing, wrong-kind, access and I/O failures.

Remarks

Synchronous. Follows host metadata semantics, including symbolic links; no sandbox or stable identity is promised. Does not create an entry or retain a content stream.