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

Function ValidatePath

cpp/src/arrow/filesystem/mockfs.cc:47–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45namespace {
46
47Status ValidatePath(std::string_view s) {
48 if (internal::IsLikelyUri(s)) {
49 return Status::Invalid("Expected a filesystem path, got a URI: '", s, "'");
50 }
51 return Status::OK();
52}
53
54////////////////////////////////////////////////////////////////////////////
55// Filesystem structure

Callers 11

CreateDirMethod · 0.70
DeleteDirMethod · 0.70
DeleteDirContentsMethod · 0.70
DeleteFileMethod · 0.70
GetFileInfoMethod · 0.70
RunMethod · 0.70
OpenInputStreamMethod · 0.70
OpenInputFileMethod · 0.70
OpenOutputStreamMethod · 0.70
OpenAppendStreamMethod · 0.70
CreateFileMethod · 0.70

Calls 3

IsLikelyUriFunction · 0.85
InvalidFunction · 0.50
OKFunction · 0.50

Tested by

no test coverage detected