commit | 573d5cf2ea48a56322bfc468af49bf4845985dd8 | [log] [tgz] |
---|---|---|
author | Matan Lurey <matanlurey@users.noreply.github.com> | Mon Jan 09 21:25:50 2017 -0800 |
committer | GitHub <noreply@github.com> | Mon Jan 09 21:25:50 2017 -0800 |
tree | 5fe219e43abacabcb4cd534c7a253301435612b2 | |
parent | f53c50f393cc810ea0e120a351418718b478f151 [diff] |
Various comment updates and little fixes (#51) * 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 * Various comment cleanups, specifically… … around having the first line be standalone (more readable) and not repeating comments too much. No actual changes otherwise. * Remove unneeded @TestOn/library directives. * Address comments.
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();