commit | e4e5372dc2c6e1af4c3bd6091556f47f240d857b | [log] [tgz] |
---|---|---|
author | Todd Volkert <tvolkert@users.noreply.github.com> | Thu Jan 26 17:28:22 2017 -0800 |
committer | GitHub <noreply@github.com> | Thu Jan 26 17:28:22 2017 -0800 |
tree | 91d3f39f1816cf8cb4fa833bcd87217e8429d883 | |
parent | 094ea68088ee3dede147d8dfcbb1e533b63fc08a [diff] |
Expose Forwarding* as part of the main interface. (#12) As part of this, add ForwardingFileSystem. Fixes #2
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();