commit | 2d5f65e6b764ed82c7b31b90cd80c1ca2c200e24 | [log] [tgz] |
---|---|---|
author | Todd Volkert <tvolkert@users.noreply.github.com> | Wed Dec 28 14:56:13 2016 -0500 |
committer | GitHub <noreply@github.com> | Wed Dec 28 14:56:13 2016 -0500 |
tree | 5664be49bf9696876130805eb6005ba3efa28669 | |
parent | 80a55a38e4087225e7edc53dd400ad3538d97c3d [diff] |
Make some methods in `_MemoryFileSystemEntity` private (#32) This is a minor cleanup to prevent the possibility of leaking the internal nodes in `MemoryFileSystem`.
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`;