LocalStorageDisk class
Resolves paths inside a local filesystem directory.
The root is normalized to an absolute path when the disk is constructed.
Construction does not create the directory. Supply a file.FileSystem to
use a test filesystem or a non-default filesystem context.
- Implemented types
Constructors
- LocalStorageDisk({required String root, FileSystem? fileSystem})
-
Creates a local disk rooted at
root.
Properties
- fileSystem → FileSystem
-
The filesystem associated with this disk.
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- root → String
-
The normalized absolute root path for this disk.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- storage → FilesystemAdapter
-
Unified asynchronous file operations for this disk.
latefinal
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resolve(
String path) → String -
Resolves the application-relative
pathfor this disk.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited