commit | e30f99c81511ae8595d425ec9e763f61df2fb646 | [log] [tgz] |
---|---|---|
author | Todd Volkert <tvolkert@users.noreply.github.com> | Mon Feb 06 10:31:21 2017 -0800 |
committer | GitHub <noreply@github.com> | Mon Feb 06 10:31:21 2017 -0800 |
tree | 046970bb34692840710dc838c281ec5b01420bfe | |
parent | 42bf782333a6594448f759e7935420dfeca37382 [diff] |
Serialize results of certain file invocations to separate file. (#19) This uses the work that was done in #18 to wire up special handling of certain file operations such that their results will be written out to dedicated recording files. (more work towards #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();