commit | 1fc1474f85d42c724ba7bc9bd0875ecc07a590a5 | [log] [tgz] |
---|---|---|
author | Matan Lurey <matan@lurey.org> | Sat Jan 30 21:27:58 2016 +0000 |
committer | Matan Lurey <matan@lurey.org> | Sat Jan 30 21:33:40 2016 +0000 |
tree | 9571e48e3351d83ad29491409db321e9bdba01d0 | |
parent | 3f1d512867659c6c78fa5ec64735e189e2897c49 [diff] |
Add coveralls and travis support. Fix badge.
A generic file system abstraction for Dart.
This package is currently experimental and subject to change
Like dart:io
, package:file
supplies a rich Dart idiomatic API for accessing a file system.
Unlike dart:io
, package:file
:
fooSync
methods).Implement your own custom file system:
import 'package:file/file.dart'; class FooBarFileSystem implements FileSystem { ... }
Use the in-memory file system:
import 'package:file/file.dart'; var fs = new InMemoryFileSystem();
Use the local file system (requires dart:io access):
import 'package:file/io.dart'; var fs = const LocalFileSystem();