commit | d4becd76111f8ac9384f46fd75f057dcdd182655 | [log] [tgz] |
---|---|---|
author | Todd Volkert <tvolkert@users.noreply.github.com> | Sun Feb 12 13:39:03 2017 -0800 |
committer | GitHub <noreply@github.com> | Sun Feb 12 13:39:03 2017 -0800 |
tree | bf59b2934c71aa9ad0cb4af1fad4505ac7fd88b3 | |
parent | a396b83f5e08813e5bce90c00ceae15d272b021f [diff] |
Minor fixes based on an inspection of 2.0.0 release in pub and on dartdocs.org (#37)
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();