commit | a0346ec744f89ca249173fc805ae9cecc094ed96 | [log] [tgz] |
---|---|---|
author | Todd Volkert <tvolkert@users.noreply.github.com> | Sat Feb 11 11:04:16 2017 -0800 |
committer | GitHub <noreply@github.com> | Sat Feb 11 11:04:16 2017 -0800 |
tree | 3391db24b097420ed88b17848308d44c541a1e08 | |
parent | 9369e918f50b146acad405e107a830ead7f1b51d [diff] |
Fix bug (and re-enable test) in ReplayIOSink (#34)
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();