commit | e68c09b15df4b7db40958db687c322c31f179722 | [log] [tgz] |
---|---|---|
author | Matan Lurey <matanlurey@users.noreply.github.com> | Thu Jan 05 22:44:49 2017 -0500 |
committer | GitHub <noreply@github.com> | Thu Jan 05 22:44:49 2017 -0500 |
tree | a7d1892cfb9aab5de05ec58d87b7c3712f6fefb8 | |
parent | c12ff1e40630cb14e351719c2c89ea6522bb0c20 [diff] |
Replace !x.isEmpty with x.isNotEmpty (#49) * 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.
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();