openFile method
Opens the first of paths[1..] that is there, else paths[0].
null when paths[0] is not there (or no regular file), a
FileSystemException when it can not be opened. Needs owns.
Implementation
@override
FutureOr<ServerFile?> openFile(
HttpRequest req,
List<String> paths,
String folder,
) {
FutureOr<NativeFile?> opening = NativeFile.open(
paths,
folder: folder,
request: req is NativeRequest ? req : null,
);
if (opening is NativeFile?) {
return opening == null ? null : _NativeOpenFile(opening);
}
return opening.then(_wrap);
}