commit | 5caa51f9d0de64516f97f48c35d01f08f9f69155 | [log] [tgz] |
---|---|---|
author | Todd Volkert <tvolkert@users.noreply.github.com> | Fri Jan 06 16:22:26 2017 -0800 |
committer | GitHub <noreply@github.com> | Fri Jan 06 16:22:26 2017 -0800 |
tree | 3e57edd4ae920c691032ce56288935f5fb90486d | |
parent | 797599436b8b1300f2893e8e675c30d45ffccbb9 [diff] |
Add FileSystem.pathSeparator (#58)
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();