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

API Browser

Method

GetDirectory

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

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

Defined by StorageProvider.GetDirectory · Required implementation (no default).

Interface implementation: Required implementation (no default).

Looks up an existing directory and returns its provider-owned interface.

Parameters

Name Type Description
path Path Validated logical directory address interpreted by this provider.

Return value

Result<Directory, StorageLookupError>

A Directory retaining its provider context and logical address, or StorageLookupError such as NotFound, WrongKind, AccessDenied, InvalidPath or IoFailure.

Remarks

Synchronous; may block. Does not create directories or retain an open stream. Success observes current kind, not stable identity or guaranteed later access. Providers define their directory model: the sample memory provider exposes only its root.