commit | f2db25b37d6d0ba288b35bca4b024ce6d5349a78 | [log] [tgz] |
---|---|---|
author | Matan Lurey <matanlurey@users.noreply.github.com> | Fri Feb 19 11:10:58 2016 -0800 |
committer | Matan Lurey <matanlurey@users.noreply.github.com> | Fri Feb 19 11:10:58 2016 -0800 |
tree | 99da56aefeb936eef071b35d693ba0949dd06125 | |
parent | 51f8a88ed3f9eac8e3b2159c8c44044fd35e33f6 [diff] | |
parent | 618b6c6da135fc09e09e842a75f3369cc0fa551f [diff] |
Merge pull request #2 from yjbanov/extensibility feat: sync file system; more tests; stricter code analysis
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();