getFileInfo method
Locate a file at the given path.
Implementation
@override
FileInfo getFileInfo(String subpath) {
// Normalize the subpath similar to .NET implementation.
if (subpath.isEmpty || subpath == '/' || subpath == '\\') {
return NotFoundFileInfo(subpath);
}
var normalized = _normalizePath(subpath);
for (var provider in fileProviders) {
var fileInfo = provider.getFileInfo(normalized);
if (fileInfo.exists) {
return fileInfo;
}
}
return NotFoundFileInfo(subpath);
}