TomDirectoryBundleMedium class
A medium backed by a real directory on disk.
Separated from the TomBundleMedium contract and the in-memory
implementation so that the one dart:io import stays behind io.dart: a
store written against TomBundleMedium therefore links on web, where there
is no local filesystem at all.
- Inheritance
-
- Object
- TomBundleMedium
- TomDirectoryBundleMedium
Constructors
Properties
Methods
-
delete(
String path) → Future< void> -
override
-
exists(
String path) → Future< bool> -
override
-
listFiles(
) → Future< List< String> > -
All file paths (relative,
/-separated), including.history/files.override -
move(
String from, String to) → Future< void> -
Renames, rather than copying and deleting.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
readBytes(
String path) → Future< Uint8List> -
override
-
readString(
String path) → Future< String> -
The file at
pathdecoded as utf8 — the form every text file of a container is addressed through.inherited -
toString(
) → String -
A string representation of this object.
inherited
-
writeBytes(
String path, Uint8List bytes) → Future< void> -
Writes through a sibling temp file and renames it over the target.
override
-
writeString(
String path, String content) → Future< void> -
Writes
contentas utf8.inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- tempSuffix → const String
- Marks the temp files this class creates.