@@ -187,6 +187,10 @@ discard block |
||
| 187 | 187 | $this->initialized = true; |
| 188 | 188 | } |
| 189 | 189 | |
| 190 | + /** |
|
| 191 | + * @param string|null $directory |
|
| 192 | + * @param boolean $create |
|
| 193 | + */ |
|
| 190 | 194 | protected function ensureDirectoryExists($directory, $create) |
| 191 | 195 | { |
| 192 | 196 | $pwd = $this->sftp->pwd(); |
@@ -201,6 +205,9 @@ discard block |
||
| 201 | 205 | } |
| 202 | 206 | } |
| 203 | 207 | |
| 208 | + /** |
|
| 209 | + * @param string $key |
|
| 210 | + */ |
|
| 204 | 211 | protected function computePath($key) |
| 205 | 212 | { |
| 206 | 213 | return $this->directory.'/'.ltrim($key, '/'); |