commit | 6374e4aa02857c5d174d0792dbb170a68c63cfda | [log] [tgz] |
---|---|---|
author | yjbanov <yjbanov@google.com> | Fri Feb 19 15:48:22 2016 -0800 |
committer | yjbanov <yjbanov@google.com> | Fri Feb 19 15:48:22 2016 -0800 |
tree | 3e6c1fdc441291a8a6f804af96f8112f23c15cfe | |
parent | f2db25b37d6d0ba288b35bca4b024ce6d5349a78 [diff] |
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();