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

Function ValidatePath

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

Source from the content-addressed store, hash-verified

55namespace {
56
57Status ValidatePath(std::string_view s) {
58 if (internal::IsLikelyUri(s)) {
59 return Status::Invalid("Expected a local filesystem path, got a URI: '", s, "'");
60 }
61 return Status::OK();
62}
63
64Result<std::string> DoNormalizePath(std::string path) {
65 RETURN_NOT_OK(ValidatePath(path));

Callers 11

DoNormalizePathFunction · 0.70
GetFileInfoMethod · 0.70
GetFileInfoGeneratorMethod · 0.70
CreateDirMethod · 0.70
DeleteDirMethod · 0.70
DeleteDirContentsMethod · 0.70
DeleteFileMethod · 0.70
MoveMethod · 0.70
CopyFileMethod · 0.70
OpenInputStreamGenericFunction · 0.70
OpenOutputStreamGenericFunction · 0.70

Calls 3

IsLikelyUriFunction · 0.85
InvalidFunction · 0.50
OKFunction · 0.50

Tested by

no test coverage detected