commit | db0b529f55ef6b86e5af662f09ae854bfd93c42d | [log] [tgz] |
---|---|---|
author | Todd Volkert <tvolkert@users.noreply.github.com> | Mon Apr 09 16:02:04 2018 -0700 |
committer | GitHub <noreply@github.com> | Mon Apr 09 16:02:04 2018 -0700 |
tree | 0bb49737419ccfcdcda49758057223cc79fc330d | |
parent | 21dfcff87185435547288a340c1e03d27641e14c [diff] |
Make MemoryFileSystem support Windows-style paths (#82) Fixes #68
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();