Make `FileSystem.isLink` actually work (#214)

* Make `FileSystem.isLink` actually work

`FileSystem.isLink` called `FileSystem.type` with the default
argument of `followLinks: true`.  This is obviously wrong since it
would mean that `isLink` would never return true (except maybe for
broken symbolic links).

Make `FileSystem.isLink` use `followLinks: false`.  This is what
`dart:io`'s `FileSystemEntity.isLink` is documented to do.

Partially addresses https://github.com/google/file.dart/issues/8.

* Reorganize isFile/isDirectory/isLink tests

Reorganize the isFile/isDirectory/isLink tests so that the test names
are more appropriate.
3 files changed
tree: f0798fa2cca2edc9e2b2798ac0f096013424e6d1
  1. .github/
  2. packages/
  3. .gitignore
  4. README.md
README.md

Dart

A monorepo for the package:file and package:file_testing packages.

PackageDescriptionPublished Version
fileA pluggable, mockable file system abstraction for Dart.pub package
file_testingTesting utilities for package:file.pub package