commit | 8480d6ca8cf2ccd8097e534ead7fa543ea382db6 | [log] [tgz] |
---|---|---|
author | Todd Volkert <tvolkert@users.noreply.github.com> | Sun Dec 25 21:39:21 2016 -0500 |
committer | GitHub <noreply@github.com> | Sun Dec 25 21:39:21 2016 -0500 |
tree | 1089c8a5f6f7e3c49fbf41d0faab1699547a88e5 | |
parent | e9d8cc8b20ced9f79bb6b6588a9997bdbd2de28d [diff] |
Fix bugs in ChrootFile, and re-enable corresponding tests (#28)
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`;