MCPcopy Create free account
hub / github.com/apache/arrow / ValidateInputFileInfo

Function ValidateInputFileInfo

cpp/src/arrow/filesystem/filesystem.cc:190–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

188namespace {
189
190Status ValidateInputFileInfo(const FileInfo& info) {
191 if (info.type() == FileType::NotFound) {
192 return internal::PathNotFound(info.path());
193 }
194 if (info.type() != FileType::File && info.type() != FileType::Unknown) {
195 return internal::NotAFile(info.path());
196 }
197 return Status::OK();
198}
199
200} // namespace
201

Callers 4

OpenInputStreamMethod · 0.85
OpenInputFileMethod · 0.85
OpenInputStreamAsyncMethod · 0.85
OpenInputFileAsyncMethod · 0.85

Calls 5

PathNotFoundFunction · 0.70
NotAFileFunction · 0.70
OKFunction · 0.50
typeMethod · 0.45
pathMethod · 0.45

Tested by

no test coverage detected