commit | 6ef5815a995552121c2f5cd4197df1ec5e1738d2 | [log] [tgz] |
---|---|---|
author | Todd Volkert <tvolkert@users.noreply.github.com> | Wed Mar 15 10:54:42 2017 -0700 |
committer | GitHub <noreply@github.com> | Wed Mar 15 10:54:42 2017 -0700 |
tree | 785c5374ccaa244b8d616fb1ed0324a544050a15 | |
parent | 8f5f853a6c8814d80b41bf3157562c427c19ab1e [diff] |
Fix MemoryFile to update last modified time when writeAs* is called (#50)
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();