commit | 72c438ff4c97303f74755d0ab68eb1b6d897fafb | [log] [tgz] |
---|---|---|
author | Todd Volkert <tvolkert@users.noreply.github.com> | Thu Jan 05 14:59:01 2017 -0800 |
committer | GitHub <noreply@github.com> | Thu Jan 05 14:59:01 2017 -0800 |
tree | 0aaeddccb179ac8d21bf477fb408addeefe69643 | |
parent | e0a9b967f16861702074b65f21a34222e20c4f18 [diff] |
Add more tests (#34) This also standardizes some on test names
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`;