commit | e0aca538297c9e35ea671ad91f992a02285dfb35 | [log] [tgz] |
---|---|---|
author | Todd Volkert <tvolkert@users.noreply.github.com> | Wed Feb 01 10:45:45 2017 -0800 |
committer | GitHub <noreply@github.com> | Wed Feb 01 10:45:45 2017 -0800 |
tree | fc7b079e456a50e3bd0854a3ba31d1328dd15725 | |
parent | 3ba4cf2832bdfea9bb90644917a776c6a4cb509a [diff] |
Turn on stricter analyzer options (#17) (and fix the associated warnings & errors)
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();