commit | 2b00b23392e6e927950cd2496c25216f076e6694 | [log] [tgz] |
---|---|---|
author | Keerti Parthasarathy <keertip@users.noreply.github.com> | Thu Apr 05 15:15:44 2018 -0700 |
committer | Todd Volkert <tvolkert@users.noreply.github.com> | Thu Apr 05 15:15:44 2018 -0700 |
tree | fa52656a1278132a3526a96b08da56c158ee39d1 | |
parent | c09a43041d9e5e59cc3b7c82b013b69effb8c1eb [diff] |
Update the signature for RecordingRandomAccessFile._close due to chan… (#78) * Update the signature for RecordingRandomAccessFile._close due to changes in dart:io.
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();