commit | 797599436b8b1300f2893e8e675c30d45ffccbb9 | [log] [tgz] |
---|---|---|
author | Todd Volkert <tvolkert@users.noreply.github.com> | Fri Jan 06 15:12:03 2017 -0800 |
committer | GitHub <noreply@github.com> | Fri Jan 06 15:12:03 2017 -0800 |
tree | 02fb9790ef258c85f7315c35391fc63b7ef117be | |
parent | 9b1d998760df41d64d73c4846a7901f78cb0632e [diff] |
Fix bug in MemoryFileSystemEntity.resolveSymbolicLinks() (#57) It was resolving absolute paths correctly, but then returning the resolved path relative to the current directory.
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();