commit | 6d335f04f5d88fdda156dda26b543458050095e7 | [log] [tgz] |
---|---|---|
author | Todd Volkert <tvolkert@users.noreply.github.com> | Thu Feb 09 10:58:52 2017 -0800 |
committer | GitHub <noreply@github.com> | Thu Feb 09 10:58:52 2017 -0800 |
tree | 61988e042afcae2746a9b22d9634140e482e7660 | |
parent | 6c58340088ecf03edaa938b92da7a5f7e6553964 [diff] |
Partial implementation of ReplayFileSystem (#28) This implements all the plumbing for `ReplayFileSystem` except for the resurrectors for `FileSystemEntity`, `File`, `Directory`, and `Link`. Those will land in a follow-on PR. 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();