exists method
Reports whether path resolves to anything.
Implementation
@override
Future<Result<bool>> exists(String path) async {
if (_existsResults.isNotEmpty) {
return _existsResults.removeFirst();
}
final String normalized = normalizePath(path);
return Ok<bool>(
_files.containsKey(normalized) || _directories.contains(normalized),
);
}