commit | da342e3102046e67645f05893419b7add05b8464 | [log] [tgz] |
---|---|---|
author | Todd Volkert <tvolkert@users.noreply.github.com> | Fri Feb 10 16:27:58 2017 -0800 |
committer | GitHub <noreply@github.com> | Fri Feb 10 16:27:58 2017 -0800 |
tree | 0512ca6c063252c2d2d47c5390f429ff45f1acff | |
parent | 24f17ebbb3773588cba72fd91b225651a6055e26 [diff] |
More implementation of ReplayFileSystem (#32) Part of #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();