commit | d0f2de4a1411952e1ac8a672c4251a1bd6b58344 | [log] [tgz] |
---|---|---|
author | Todd Volkert <tvolkert@users.noreply.github.com> | Sun Feb 12 13:04:57 2017 -0800 |
committer | GitHub <noreply@github.com> | Sun Feb 12 13:04:57 2017 -0800 |
tree | a6a92f95eb34f1a9024079a51c0f9ac59dd4b1b9 | |
parent | a0346ec744f89ca249173fc805ae9cecc094ed96 [diff] |
Record & replay errors in (Recording|Replay)FileSystem (#35)
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();