commit | 3b8d74b7ef408701c09a11470030f4316a59f005 | [log] [tgz] |
---|---|---|
author | Michael Goderbauer <goderbauer@google.com> | Mon Feb 12 10:00:40 2018 -0800 |
committer | GitHub <noreply@github.com> | Mon Feb 12 10:00:40 2018 -0800 |
tree | 8d88ea0827c5d502e4a0fbf2b72dd67592ee180e | |
parent | 7ea0bb87dffadfcf17185f697ce4f44317b49bc8 [diff] |
Allow dev to fail on travis (#71)
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();