commit | 3e1e6c6e7d8454deb63bea846a22d98848aefb36 | [log] [tgz] |
---|---|---|
author | Todd Volkert <tvolkert@users.noreply.github.com> | Thu Feb 16 10:11:32 2017 -0800 |
committer | GitHub <noreply@github.com> | Thu Feb 16 10:11:32 2017 -0800 |
tree | cf1319e0fa00353b84b0eda1f5b5e1a69f700339 | |
parent | bece3fb87a09ba39646596dcb38635a6fcb56df3 [diff] |
Update API per new dart:io methods (#39)
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();