commit | 094ea68088ee3dede147d8dfcbb1e533b63fc08a | [log] [tgz] |
---|---|---|
author | Todd Volkert <tvolkert@users.noreply.github.com> | Mon Jan 23 10:54:03 2017 -0800 |
committer | GitHub <noreply@github.com> | Mon Jan 23 10:54:03 2017 -0800 |
tree | 98923c2bfae9f1b1f92ed32cd0a3dd1820e42c70 | |
parent | 47f06555b29021c806ce7b5d6b037d3a6cfdaba5 [diff] |
Better toString() implementations (#68) Fixes #67
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();