| 55 | namespace { |
| 56 | |
| 57 | Status 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 | |
| 64 | Result<std::string> DoNormalizePath(std::string path) { |
| 65 | RETURN_NOT_OK(ValidatePath(path)); |
no test coverage detected