commit | 36c2f3f94fbafbe4614115366460d834999e5c9f | [log] [tgz] |
---|---|---|
author | Todd Volkert <tvolkert@users.noreply.github.com> | Tue Dec 27 00:09:54 2016 -0500 |
committer | GitHub <noreply@github.com> | Tue Dec 27 00:09:54 2016 -0500 |
tree | 647a44e4813bbd5239357f91665790dda6e37319 | |
parent | 66b06cc8583b451660a42d218f801a09b204e57a [diff] |
Fix bugs in `_MemoryLink`, & re-enable corresponding tests (#30)
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`;