in cpp/code/flight.cc [161:170]
arrow::Result<arrow::fs::FileInfo> FileInfoFromDescriptor(
const arrow::flight::FlightDescriptor& descriptor) {
if (descriptor.type != arrow::flight::FlightDescriptor::PATH) {
return arrow::Status::Invalid("Must provide PATH-type FlightDescriptor");
} else if (descriptor.path.size() != 1) {
return arrow::Status::Invalid(
"Must provide PATH-type FlightDescriptor with one path component");
}
return root_->GetFileInfo(descriptor.path[0]);
}