Create a StorageManager.
The name of the default disk.
Resolve a disk by name (defaults to the default disk).
Optionalname: string
The disk name.
The resolved FileSystem driver.
Whether a disk (instance or factory) is registered under the name.
The disk name.
True if the disk is registered.
Register a ready-made disk driver instance.
The disk name.
The driver instance.
This manager for chaining.
Register a lazy factory for a disk (the driver is built on first access).
The disk name.
The driver factory.
This manager for chaining.
Set the default disk name.
The disk name.
This manager for chaining.
StaticcreateCreate a StorageManager.
The name of the default disk.
A new StorageManager with a local disk registered.
Multi-disk storage registry.
Application code resolves a disk by name (
storage.disk('s3')) and talks to it through the agnostic FileSystem contract, so the concrete backend is a registration/configuration detail. Alocaldisk rooted at the current working directory is registered by default; anS3FileSystem(or any other driver) is added with registerFactory without touching consumers.