commit | ad06da8bd04cf897494eff8d9eb07931cef0a143 | [log] [tgz] |
---|---|---|
author | Todd Volkert <tvolkert@users.noreply.github.com> | Thu Jan 05 16:11:45 2017 -0800 |
committer | GitHub <noreply@github.com> | Thu Jan 05 16:11:45 2017 -0800 |
tree | 3ca87e8b725675f7f9f18ca84a744edd48c2b9c0 | |
parent | ab4b8fbb751c09a2521b187818317eda5d050032 [diff] |
Add SDK constraint to be able to publish to pub (#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();