commit | 66b06cc8583b451660a42d218f801a09b204e57a | [log] [tgz] |
---|---|---|
author | Todd Volkert <tvolkert@users.noreply.github.com> | Mon Dec 26 11:49:23 2016 -0500 |
committer | GitHub <noreply@github.com> | Mon Dec 26 11:49:23 2016 -0500 |
tree | 05f02b8316e893428626f1db1b9434017460cabc | |
parent | 8480d6ca8cf2ccd8097e534ead7fa543ea382db6 [diff] |
Add tests for `Link` (#29) This adds comprehensive tests for `Link`. Any file system implementations that yielded failing tests have marked those tests as skipped; the corresponding bugs will be fixed (and the tests re-enabled) in a follow-on change.
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`;