commit | 3a5888433800117efff6f93b2c2df44e6b69c916 | [log] [tgz] |
---|---|---|
author | Michael Goderbauer <goderbauer@google.com> | Mon Feb 12 10:14:02 2018 -0800 |
committer | GitHub <noreply@github.com> | Mon Feb 12 10:14:02 2018 -0800 |
tree | 7d0dc8951023b38fa3722d18d0f43155c242f0d0 | |
parent | 3b8d74b7ef408701c09a11470030f4316a59f005 [diff] |
Revert "Allow dev to fail on travis (#71)" (#72) This reverts commit 3b8d74b7ef408701c09a11470030f4316a59f005.
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();