commit | 8f5f853a6c8814d80b41bf3157562c427c19ab1e | [log] [tgz] |
---|---|---|
author | Todd Volkert <tvolkert@users.noreply.github.com> | Mon Feb 27 13:27:57 2017 -0800 |
committer | GitHub <noreply@github.com> | Mon Feb 27 13:27:57 2017 -0800 |
tree | a6e1afc2be0c3c10a3f4d7b6ce19abd3cf2cf22f | |
parent | de508cac1e8989572510bc173d1b268ffc12911f [diff] |
Added convenience methods in `Directory`... (#46) ... for creating child entities.
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();