commit | 63522fe1132a698d90361bd0e2ff5d43fa1f8ce0 | [log] [tgz] |
---|---|---|
author | Matan Lurey <matanlurey@users.noreply.github.com> | Fri Feb 19 16:42:41 2016 -0800 |
committer | Matan Lurey <matanlurey@users.noreply.github.com> | Fri Feb 19 16:42:41 2016 -0800 |
tree | 3e6c1fdc441291a8a6f804af96f8112f23c15cfe | |
parent | f2db25b37d6d0ba288b35bca4b024ce6d5349a78 [diff] | |
parent | 6374e4aa02857c5d174d0792dbb170a68c63cfda [diff] |
Merge pull request #3 from yjbanov/backing-map feat: allow sharing backing store across in-memory file systems
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();