commit | 98bd922d222639debbf7b6bbcc1d044c99e5e204 | [log] [tgz] |
---|---|---|
author | Todd Volkert <tvolkert@users.noreply.github.com> | Fri Jan 06 10:42:07 2017 -0800 |
committer | GitHub <noreply@github.com> | Fri Jan 06 10:42:07 2017 -0800 |
tree | 165fcaea06ba72c8b820837a523e5cb0801a4f11 | |
parent | 571432e93a06f152a9ed5b6387deb8121e333579 [diff] |
Add `FileSystem.systemTempDirectory` (#55) This provides API parity with dart:io's `Directory.systemTemp` getter.
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();