commit | 51f8a88ed3f9eac8e3b2159c8c44044fd35e33f6 | [log] [tgz] |
---|---|---|
author | Matan Lurey <matan@lurey.org> | Mon Feb 01 02:47:45 2016 +0000 |
committer | Matan Lurey <matan@lurey.org> | Mon Feb 01 02:47:45 2016 +0000 |
tree | e52fcc2fea68158a7049e2bcf995802c882954ac | |
parent | 1fc1474f85d42c724ba7bc9bd0875ecc07a590a5 [diff] |
Change InMemory > Memory. Add common tests and I/O.
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();