commit | 6ecf967b7def868e26ce6eef3e66437b1e6c2b11 | [log] [tgz] |
---|---|---|
author | Keerti Parthasarathy <keertip@users.noreply.github.com> | Tue Jul 11 15:06:23 2017 -0700 |
committer | Todd Volkert <tvolkert@users.noreply.github.com> | Tue Jul 11 15:06:23 2017 -0700 |
tree | c303bfdcedabb4e47e28237435b7e382e708c430 | |
parent | fb5bce52ea233d5aea62604c58985c5439a82b51 [diff] |
Make the test async so as to wait for write to be done (#58)
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();