commit | 4d0bbfde756ff627cfd444ea762b1491f4568770 | [log] [tgz] |
---|---|---|
author | Matan Lurey <matanlurey@users.noreply.github.com> | Thu Jan 05 22:45:36 2017 -0500 |
committer | GitHub <noreply@github.com> | Thu Jan 05 22:45:36 2017 -0500 |
tree | 6c19b233a57b5ccd44fbcb85e015859c7cd68deb | |
parent | e68c09b15df4b7db40958db687c322c31f179722 [diff] |
Run all tests when calculating coverage (#50) * Update travis.sh to use .analysis_options… Was accidentally pointing to a non-existing file before. * Replace uses of !<collection>isEmpty with … isNotEmpty, as-per Dart style guide. * Run all tests when calculating coverage
A generic file system abstraction for Dart.
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/memory.dart'; var fs = new MemoryFileSystem();
Use the local file system (requires dart:io access):
import 'package:file/local.dart'; var fs = const LocalFileSystem();