commit | 4531665baf4bd25fea0bf13f1cd9c208e9ae65ae | [log] [tgz] |
---|---|---|
author | Todd Volkert <tvolkert@users.noreply.github.com> | Wed Dec 14 16:28:38 2016 -0800 |
committer | GitHub <noreply@github.com> | Wed Dec 14 16:28:38 2016 -0800 |
tree | 5af92c54bd6fbcec5a5b3a6d44fed59590489d74 | |
parent | 4b4892735f007c053c59ae385b2aac3c837959f9 [diff] |
Implement tests for Directory (#19)
A generic file system abstraction for Dart.
This package is currently experimental and subject to change
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/file.dart'; var fs = new InMemoryFileSystem();
Use the local file system (requires dart:io access):
import 'package:file/io.dart'; var fs = const LocalFileSystem();
The synchronous counterparts can be imported from:
// API and in-memory implementation import `package:file/sync.dart`; // Implementation based on "dart:io" import `package:file/sync_io.dart`;