commit | 4a6807cd3cab7d07b56e054259da14a63c2854d4 | [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 | 70d836e949f1162d6e54c30c93e652710860eb8a [diff] |
Record & replay errors in (Recording|Replay)FileSystem (dart-lang/file#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();