commit | bc6ce1fd924713f487706c98db13e53c369f902c | [log] [tgz] |
---|---|---|
author | Kevin Moore <kevmoo@users.noreply.github.com> | Fri Feb 16 11:31:51 2018 -0800 |
committer | Todd Volkert <tvolkert@users.noreply.github.com> | Fri Feb 16 11:31:51 2018 -0800 |
tree | 48ac445d32f91501c94a8f6ee44d29df599385bc | |
parent | 3a5888433800117efff6f93b2c2df44e6b69c916 [diff] |
Use Travis tasks (#73) coverage seems to be broken anyway
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();