src/Backup/Sync/AmazonS3v3.php 1 location
|
@@ 205-212 (lines=8) @@
|
| 202 |
|
* @return resource |
| 203 |
|
* @throws \phpbu\App\Backup\Sync\Exception |
| 204 |
|
*/ |
| 205 |
|
private function getFileHandle($path, $mode) |
| 206 |
|
{ |
| 207 |
|
$handle = fopen($path, $mode); |
| 208 |
|
if (!is_resource($handle)) { |
| 209 |
|
throw new Exception('fopen failed: could not open stream ' . $path); |
| 210 |
|
} |
| 211 |
|
return $handle; |
| 212 |
|
} |
| 213 |
|
|
| 214 |
|
/** |
| 215 |
|
* Get the s3 upload path |
src/Backup/Sync/AzureBlob.php 1 location
|
@@ 234-241 (lines=8) @@
|
| 231 |
|
* @return resource |
| 232 |
|
* @throws \phpbu\App\Backup\Sync\Exception |
| 233 |
|
*/ |
| 234 |
|
protected function getFileHandle($path, $mode) |
| 235 |
|
{ |
| 236 |
|
$handle = fopen($path, $mode); |
| 237 |
|
if (!is_resource($handle)) { |
| 238 |
|
throw new Exception('fopen failed: could not open stream ' . $path); |
| 239 |
|
} |
| 240 |
|
return $handle; |
| 241 |
|
} |
| 242 |
|
|
| 243 |
|
/** |
| 244 |
|
* Get the azure blob upload path |