commit | 618b6c6da135fc09e09e842a75f3369cc0fa551f | [log] [tgz] |
---|---|---|
author | Yegor Jbanov <yjbanov@google.com> | Thu Feb 18 23:49:42 2016 -0800 |
committer | Yegor Jbanov <yjbanov@google.com> | Thu Feb 18 23:49:42 2016 -0800 |
tree | 99da56aefeb936eef071b35d693ba0949dd06125 | |
parent | 51f8a88ed3f9eac8e3b2159c8c44044fd35e33f6 [diff] |
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();