commit | eda5a8b371304192f98083a9540910cead17af19 | [log] [tgz] |
---|---|---|
author | Todd Volkert <tvolkert@users.noreply.github.com> | Sat Jan 28 20:11:04 2017 -0800 |
committer | GitHub <noreply@github.com> | Sat Jan 28 20:11:04 2017 -0800 |
tree | f62f826da35210cd3f1ee96f1a17d022d113b46c | |
parent | 57a4a6ce32e368222e98edd0d7be657c8c290ab6 [diff] |
Add `basename` and `dirname` to `FileSystemEntity` (#15)
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();