commit | 47f06555b29021c806ce7b5d6b037d3a6cfdaba5 | [log] [tgz] |
---|---|---|
author | Todd Volkert <tvolkert@users.noreply.github.com> | Thu Jan 12 08:39:40 2017 -0800 |
committer | GitHub <noreply@github.com> | Thu Jan 12 08:39:40 2017 -0800 |
tree | f8b3f8887f7ef4f9df55324ab6d007f53dba43b5 | |
parent | 9609e08947919482f5b7fbb348e484e98aae8719 [diff] |
Fix tests in Dart dev channel (#64) Fixes #60
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();