Interface
StorageProvider
interface StorageProvider
Module: System.Storage
Assembly: System.Runtime.dll
Source file: StorageProvider.rvn
Resolves logical storage addresses to provider-implemented item interfaces.
Remarks
Development API after Preview 9. GetItem returns StorageItem; typed lookup returns File or Directory. Calls are synchronous and may block. Lookup observes current existence and kind without creating an entry or retaining an open content stream. Implementations own identity and byte access; this contract requires no byte-opening or text helper methods. Parsing does not grant access. Replaces the transitional StorageLookup and byte-provider split. See the provider guide.
Implementing types
Documented types in this API reference. Indirect relationships are marked.
Methods
3 items
GetDirectory(path: Path) -> Result<Directory, StorageLookupError>
Looks up an existing directory and returns its provider-owned interface.
Defined by StorageProvider.GetDirectory · Required implementation (no default).
GetFile(path: Path) -> Result<File, StorageLookupError>
Looks up an existing file and returns its provider-bound descriptor.
Defined by StorageProvider.GetFile · Required implementation (no default).
GetItem(path: Path) -> Result<StorageItem, StorageLookupError>
Looks up a file or directory without requiring its kind in advance.
Defined by StorageProvider.GetItem · Required implementation (no default).