Fix MemoryFileSystem to treat an empty path as non-existent (#213)
* Fix MemoryFileSystem to treat an empty path as non-existent
`_MemoryFileSystem.findNode` returns `reference?.directory` if given
the root path or an empty path. However, an empty path should
be treated as non-existent, not as a directory. Instead explicitly
return `null` as a special case when given an empty path.
Partially addresses https://github.com/google/file.dart/issues/198.
* Make _MemoryFileSystem._current nullable
3 files changed
tree: d52e132742a1a07825b04b2f7d792c8203dfaf9e
- .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. | |