| 598 | } |
| 599 | |
| 600 | bool 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 | |
| 612 | const auto kHierarchicalNamespaceIsDirectoryMetadataKey = "hdi_isFolder"; |
| 613 | const auto kFlatNamespaceIsDirectoryMetadataKey = "is_directory"; |
no outgoing calls
no test coverage detected