commit | 3ba4cf2832bdfea9bb90644917a776c6a4cb509a | [log] [tgz] |
---|---|---|
author | Todd Volkert <tvolkert@users.noreply.github.com> | Tue Jan 31 19:57:51 2017 -0800 |
committer | GitHub <noreply@github.com> | Tue Jan 31 19:57:51 2017 -0800 |
tree | 0f536983731fe871fd6e48e1e1a3f854eca93501 | |
parent | eda5a8b371304192f98083a9540910cead17af19 [diff] |
Implement RecordingFileSystem. (#16) To be followed by ReplayFileSystem in an upcoming commit. First 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();