commit | 89345e9870457a976a8e94a041714e69d487fe5c | [log] [tgz] |
---|---|---|
author | Sam Rawlins <sam.rawlins@gmail.com> | Thu Jan 11 09:31:34 2018 -0800 |
committer | Todd Volkert <tvolkert@users.noreply.github.com> | Thu Jan 11 09:31:34 2018 -0800 |
tree | 10adf67a03356c415a1050e8159b5cd88477e78f | |
parent | 12156a51656bc9a5d5a6ac24671c5f46d685cce9 [diff] |
Only pass boolean values to assert (#64)
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();