commit | 59332296f9ffbac394346497d4f78b6ddbed2308 | [log] [tgz] |
---|---|---|
author | yjbanov <yjbanov@google.com> | Fri Feb 19 17:46:47 2016 -0800 |
committer | yjbanov <yjbanov@google.com> | Fri Feb 19 17:46:47 2016 -0800 |
tree | 22e09c357dd71208e0a50ba217db9eaf4b7e16bc | |
parent | 63522fe1132a698d90361bd0e2ff5d43fa1f8ce0 [diff] |
update readme and pubspec
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`;