commit | c09a43041d9e5e59cc3b7c82b013b69effb8c1eb | [log] [tgz] |
---|---|---|
author | Todd Volkert <tvolkert@users.noreply.github.com> | Tue Mar 20 12:18:33 2018 -0700 |
committer | GitHub <noreply@github.com> | Tue Mar 20 12:18:33 2018 -0700 |
tree | 700d951147ed86cc440793663f6256a846812551 | |
parent | 80218072079137d2d3dbd8033b67140756d2828e [diff] |
Import dart:io directly (#77)
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();