commit | 9369e918f50b146acad405e107a830ead7f1b51d | [log] [tgz] |
---|---|---|
author | Todd Volkert <tvolkert@users.noreply.github.com> | Sat Feb 11 08:56:30 2017 -0800 |
committer | GitHub <noreply@github.com> | Sat Feb 11 08:56:30 2017 -0800 |
tree | 6c01a5a053c8961285e145880f9629981a1363af | |
parent | da342e3102046e67645f05893419b7add05b8464 [diff] |
Finish implementation of ReplayFileSystem (#33) Fixes #11
A generic file system abstraction for Dart.
Like dart:io
, package:file
supplies a rich Dart-idiomatic API for accessing a file system.
Unlike dart:io
, package:file
:
Implement your own custom file system:
import 'package:file/file.dart'; class FooBarFileSystem implements FileSystem { ... }
Use the in-memory file system:
import 'package:file/memory.dart'; var fs = new MemoryFileSystem();
Use the local file system (requires dart:io access):
import 'package:file/local.dart'; var fs = const LocalFileSystem();