commit | ce36d35fc64c4e0fcdc5b3fe616c8a569fec9e92 | [log] [tgz] |
---|---|---|
author | Todd Volkert <tvolkert@users.noreply.github.com> | Tue Feb 21 11:08:58 2017 -0800 |
committer | GitHub <noreply@github.com> | Tue Feb 21 11:08:58 2017 -0800 |
tree | 29ad460ed3de634d824e027383f77525c9fb35bc | |
parent | 3e1e6c6e7d8454deb63bea846a22d98848aefb36 [diff] |
Prepare for 2.1.0 release (#40)
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();