| 58 | } |
| 59 | |
| 60 | string S3Url::getPathForCurl() const { |
| 61 | stringstream pathSs; |
| 62 | |
| 63 | if (!this->getBucket().empty()) { |
| 64 | pathSs << "/" << this->getBucket(); |
| 65 | } |
| 66 | |
| 67 | pathSs << "/" << this->getPrefix(); |
| 68 | |
| 69 | return pathSs.str(); |
| 70 | } |
| 71 | |
| 72 | void S3Url::extractEncodedPrefix() { |
| 73 | size_t ibegin = find_Nth(this->sourceUrl, 3, "/"); |