| 2998 | } |
| 2999 | |
| 3000 | Status EnsureDirectoryExists(const S3Path& path) { |
| 3001 | if (!path.key.empty()) { |
| 3002 | return CreateEmptyDir(path.bucket, path.key); |
| 3003 | } |
| 3004 | return Status::OK(); |
| 3005 | } |
| 3006 | |
| 3007 | Status EnsureParentExists(const S3Path& path) { |
| 3008 | if (path.has_parent()) { |
no test coverage detected