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

Function IsContainerNotFound

cpp/src/arrow/filesystem/azurefs.cc:600–610  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

598}
599
600bool IsContainerNotFound(const Core::RequestFailedException& e) {
601 // In some situations, only the ReasonPhrase is set and the
602 // ErrorCode is empty, so we check both.
603 if (e.ErrorCode == "ContainerNotFound" ||
604 e.ReasonPhrase == "The specified container does not exist." ||
605 e.ReasonPhrase == "The specified filesystem does not exist.") {
606 DCHECK_EQ(e.StatusCode, Http::HttpStatusCode::NotFound);
607 return true;
608 }
609 return false;
610}
611
612const auto kHierarchicalNamespaceIsDirectoryMetadataKey = "hdi_isFolder";
613const auto kFlatNamespaceIsDirectoryMetadataKey = "is_directory";

Calls

no outgoing calls

Tested by

no test coverage detected