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
- .github/
- packages/
- .gitignore
- README.md
README.md
A monorepo for the package:file
and package:file_testing
packages.
Package | Description | Published Version |
---|
file | A pluggable, mockable file system abstraction for Dart. | |
file_testing | Testing utilities for package:file. | |