commit | 4da2da0c38451329791c62123ac208e3e426160a | [log] [tgz] |
---|---|---|
author | Todd Volkert <tvolkert@users.noreply.github.com> | Thu Mar 16 09:45:36 2017 -0700 |
committer | Todd Volkert <tvolkert@google.com> | Thu Mar 16 09:49:21 2017 -0700 |
tree | 2ff41514af01b5cadc38f98f71daa20ce26a206e | |
parent | 6ef5815a995552121c2f5cd4197df1ec5e1738d2 [diff] |
Enable Windows testing of MemoryFileSystem (#52) LocalFileSystem exposes a number of bugs in the Dart VM on Windows, so for now we'll skip those, but this at least ensures that MemoryFileSystem will have Windows testing, since it has no excuse to not run on Windows. First step in #51
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();