commit | 5f99e6bdddb7c5cee2d8e7573b9591bc5acadca2 | [log] [tgz] |
---|---|---|
author | Sam Rawlins <sam.rawlins@gmail.com> | Fri Jan 19 14:40:28 2018 -0800 |
committer | Todd Volkert <tvolkert@users.noreply.github.com> | Fri Jan 19 14:40:28 2018 -0800 |
tree | 97da2ec9b71c9e5e0ed4eb029ca330ad59301835 | |
parent | 99baf3698ac28904b53fe8cb57c8dc8b50589a2b [diff] |
Fix impl of memory directory's _renameSync. (#66)
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();