apps/files_external/lib/Lib/Storage/FTP.php 1 location
|
@@ 112-116 (lines=5) @@
|
| 109 |
|
case 'w': |
| 110 |
|
case 'wb': |
| 111 |
|
case 'a': |
| 112 |
|
case 'ab': |
| 113 |
|
//these are supported by the wrapper |
| 114 |
|
$context = stream_context_create(array('ftp' => array('overwrite' => true))); |
| 115 |
|
$handle = fopen($this->constructUrl($path), $mode, false, $context); |
| 116 |
|
return RetryWrapper::wrap($handle); |
| 117 |
|
case 'r+': |
| 118 |
|
case 'w+': |
| 119 |
|
case 'wb+': |
apps/files_external/lib/Lib/Storage/SFTP.php 1 location
|
@@ 373-376 (lines=4) @@
|
| 370 |
|
case 'x': |
| 371 |
|
case 'x+': |
| 372 |
|
case 'c': |
| 373 |
|
case 'c+': |
| 374 |
|
$context = stream_context_create(array('sftp' => array('session' => $this->getConnection()))); |
| 375 |
|
$handle = fopen($this->constructUrl($path), $mode, false, $context); |
| 376 |
|
return RetryWrapper::wrap($handle); |
| 377 |
|
} |
| 378 |
|
} catch (\Exception $e) { |
| 379 |
|
} |