| 571 | } |
| 572 | |
| 573 | Status ValidateFileLocation(const AzureLocation& location) { |
| 574 | if (location.container.empty()) { |
| 575 | return PathNotFound(location); |
| 576 | } |
| 577 | if (location.path.empty()) { |
| 578 | return NotAFile(location); |
| 579 | } |
| 580 | return internal::AssertNoTrailingSlash(location.path); |
| 581 | } |
| 582 | |
| 583 | Status InvalidDirMoveToSubdir(const AzureLocation& src, const AzureLocation& dest) { |
| 584 | return Status::Invalid("Cannot Move to '", dest.all, "' and make '", src.all, |
no test coverage detected