commit | 9be22fa61183c46397ce65994e320f050689f3ee | [log] [tgz] |
---|---|---|
author | Alexander Aprelev <aam@google.com> | Mon Feb 12 09:37:24 2018 -0800 |
committer | Todd Volkert <tvolkert@users.noreply.github.com> | Mon Feb 12 09:37:24 2018 -0800 |
tree | 282e767938383dc9c9bdb5f55329d4c2c6334451 | |
parent | 5f99e6bdddb7c5cee2d8e7573b9591bc5acadca2 [diff] |
Update sdk constraint to <2.0.0. Drop '-dev.infinity' (#69)
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();