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

Method GetFileInfo

cpp/src/arrow/filesystem/localfs.cc:316–320  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

314}
315
316Result<FileInfo> LocalFileSystem::GetFileInfo(const std::string& path) {
317 RETURN_NOT_OK(ValidatePath(path));
318 ARROW_ASSIGN_OR_RAISE(auto fn, PlatformFilename::FromString(path));
319 return StatFile(fn.ToNative());
320}
321
322Result<std::vector<FileInfo>> LocalFileSystem::GetFileInfo(const FileSelector& select) {
323 RETURN_NOT_OK(ValidatePath(select.base_dir));

Callers

nothing calls this directly

Calls 3

StatFileFunction · 0.85
StatSelectorFunction · 0.85
ValidatePathFunction · 0.70

Tested by

no test coverage detected