commit | bece3fb87a09ba39646596dcb38635a6fcb56df3 | [log] [tgz] |
---|---|---|
author | Todd Volkert <tvolkert@users.noreply.github.com> | Mon Feb 13 15:35:03 2017 -0800 |
committer | GitHub <noreply@github.com> | Mon Feb 13 15:35:03 2017 -0800 |
tree | 962a2cc0beaf6a6761becf3f0d62a6595a090b13 | |
parent | 700d00a8a070e0751f6e4147201c2828e46487be [diff] |
Stop using deprecated Throws matcher (#38)
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();