Interface
Directory
interface Directory
Module: System.Storage
Assembly: System.Runtime.dll
Source file: StorageItems.rvn
Inherits: StorageItem
Part of closed hierarchy: StorageItem
The directory branch of StorageItem, implemented by storage providers.
Remarks
Development interface after Preview 9. Providers supply Name, Path, child-address construction and explicit relative file lookup. There is no public constructor. Current sample implementations retain provider context; no metadata cache or native filesystem identity is required. FileAt remains a transitional POC address operation. Relative GetItem/GetDirectory and bounded GetItems are now implemented. Metadata queries and asynchronous operations remain follow-ups.
Properties
2 items
Name: string
Gets this item's represented name without performing a storage query.
Inherited from StorageItem.Name · Defined by StorageItem.Name · Required implementation (no default).
Path: Path
Gets this item's logical address in its provider namespace.
Inherited from StorageItem.Path · Defined by StorageItem.Path · Required implementation (no default).
Methods
7 items
FileAt(name: string) -> Result<File, StorageLookupError>
Constructs a direct-child file address without performing I/O.
Defined by Directory.FileAt · Required implementation (no default).
GetDirectory(name: string) -> Result<Directory, StorageLookupError>
Looks up one direct child directory.
Defined by Directory.GetDirectory · Required implementation (no default).
GetDirectory(relativePath: Path) -> Result<Directory, StorageLookupError>
Looks up a directory by a relative logical path.
Defined by Directory.GetDirectory · Required implementation (no default).
GetFile(name: string) -> Result<File, StorageLookupError>
Validates one child name and explicitly looks up its file.
Defined by Directory.GetFile · Required implementation (no default).
GetFile(relativePath: Path) -> Result<File, StorageLookupError>
Resolves a relative logical path in this directory and looks up its file.
Defined by Directory.GetFile · Required implementation (no default).
GetItem(relativePath: Path) -> Result<StorageItem, StorageLookupError>
Resolves an existing file or directory relative to this directory.
Defined by Directory.GetItem · Required implementation (no default).
GetItems(maxItems: int) -> Result<Sequence<StorageItem>, StorageLookupError>
Retrieves a bounded snapshot of direct child item interfaces.
Defined by Directory.GetItems · Required implementation (no default).