| 45 | namespace { |
| 46 | |
| 47 | Status 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 |
no test coverage detected