commit | d9dad578414b301c0addb307864b97892fb7d078 | [log] [tgz] |
---|---|---|
author | Todd Volkert <tvolkert@users.noreply.github.com> | Tue Feb 21 16:09:30 2017 -0800 |
committer | GitHub <noreply@github.com> | Tue Feb 21 16:09:30 2017 -0800 |
tree | 4199733afd8d2ce49b4b193127184064e3b730b5 | |
parent | 4aaaddf83841db1af15fe9b087e29158fa4993b3 [diff] |
Windows fixes (#42)
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();