commit | 2eef867886c7ebc45982fa0e70d4a8d2f5d6341c | [log] [tgz] |
---|---|---|
author | yjbanov <yjbanov@google.com> | Fri Feb 19 17:49:31 2016 -0800 |
committer | yjbanov <yjbanov@google.com> | Fri Feb 19 17:49:31 2016 -0800 |
tree | 0710b6558a333e264ef1af88dbe23f0b82d77f1b | |
parent | 59332296f9ffbac394346497d4f78b6ddbed2308 [diff] |
bump next version; more readme updates
A generic file system abstraction for Dart.
This package is currently experimental and subject to change
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/file.dart'; var fs = new InMemoryFileSystem();
Use the local file system (requires dart:io access):
import 'package:file/io.dart'; var fs = const LocalFileSystem();
The synchronous counterparts can be imported from:
// API and in-memory implementation import `package:file/sync.dart`; // Implementation based on "dart:io" import `package:file/sync_io.dart`;