commit | fb5bce52ea233d5aea62604c58985c5439a82b51 | [log] [tgz] |
---|---|---|
author | Todd Volkert <tvolkert@users.noreply.github.com> | Mon Mar 27 12:21:59 2017 -0700 |
committer | GitHub <noreply@github.com> | Mon Mar 27 12:21:59 2017 -0700 |
tree | 0277f42930973a47675134db42be3973e0862439 | |
parent | 5beb5961f6fbb53d200ef827d8e38f033d8b25c9 [diff] |
Fix Uri handling in FileSystem methods (#57)
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();