commit | 9895e047b30aae47c0fb17dc151eaa3ad12316d5 | [log] [tgz] |
---|---|---|
author | Todd Volkert <tvolkert@users.noreply.github.com> | Thu Mar 16 11:05:07 2017 -0700 |
committer | GitHub <noreply@github.com> | Thu Mar 16 11:05:07 2017 -0700 |
tree | 3e334bda716e576b14202a4a57a3f400dcdb08a0 | |
parent | 1c78228d4704251cd3bedd5afd634ebdf7720a61 [diff] |
Enable Windows testing of LocalFileSystem (#54) We currently skip any tests that are already failing. Fixes #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();