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

API Browser

Method

GetItem

abstract virtual func GetItem(path: Path) -> Result<StorageItem, StorageLookupError>

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

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

Interface implementation: Required implementation (no default).

Looks up a file or directory without requiring its kind in advance.

Parameters

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

Return value

Result<StorageItem, StorageLookupError>

A provider-owned File or Directory through StorageItem, or StorageLookupError such as NotFound, AccessDenied, InvalidPath or IoFailure.

Remarks

Does not create entries or open content. An unsupported native entry kind can return WrongKind. Success does not guarantee later access or stable identity. Consumers can inspect the closed File/Directory branches without depending on concrete implementation classes.