commit | 700d00a8a070e0751f6e4147201c2828e46487be | [log] [tgz] |
---|---|---|
author | Todd Volkert <tvolkert@google.com> | Sun Feb 12 13:43:56 2017 -0800 |
committer | Todd Volkert <tvolkert@google.com> | Sun Feb 12 13:43:56 2017 -0800 |
tree | b24808390e52ec3f5d046736de00cefbf53236a4 | |
parent | d4becd76111f8ac9384f46fd75f057dcdd182655 [diff] |
Fix minor lint warning
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();