| @@ 76-88 (lines=13) @@ | ||
| 73 | /** |
|
| 74 | * {@inheritdoc} |
|
| 75 | */ |
|
| 76 | public function copy($path, $newpath): bool |
|
| 77 | { |
|
| 78 | $path = $this->applyPathPrefix($path); |
|
| 79 | $newpath = $this->applyPathPrefix($newpath); |
|
| 80 | ||
| 81 | try { |
|
| 82 | $this->client->copy($path, $newpath); |
|
| 83 | } catch (Exception $e) { |
|
| 84 | return false; |
|
| 85 | } |
|
| 86 | ||
| 87 | return true; |
|
| 88 | } |
|
| 89 | ||
| 90 | /** |
|
| 91 | * {@inheritdoc} |
|
| @@ 117-128 (lines=12) @@ | ||
| 114 | /** |
|
| 115 | * {@inheritdoc} |
|
| 116 | */ |
|
| 117 | public function createDir($dirname, Config $config) |
|
| 118 | { |
|
| 119 | $path = $this->applyPathPrefix($dirname); |
|
| 120 | ||
| 121 | $object = $this->client->createFolder($path); |
|
| 122 | ||
| 123 | if ($object === null) { |
|
| 124 | return false; |
|
| 125 | } |
|
| 126 | ||
| 127 | return $this->normalizeResponse($object); |
|
| 128 | } |
|
| 129 | ||
| 130 | /** |
|
| 131 | * {@inheritdoc} |
|
| @@ 180-191 (lines=12) @@ | ||
| 177 | /** |
|
| 178 | * {@inheritdoc} |
|
| 179 | */ |
|
| 180 | public function getMetadata($path) |
|
| 181 | { |
|
| 182 | $path = $this->applyPathPrefix($path); |
|
| 183 | ||
| 184 | try { |
|
| 185 | $object = $this->client->getMetadata($path); |
|
| 186 | } catch(Exception $e) { |
|
| 187 | return false; |
|
| 188 | } |
|
| 189 | ||
| 190 | return $this->normalizeResponse($object); |
|
| 191 | } |
|
| 192 | ||
| 193 | /** |
|
| 194 | * {@inheritdoc} |
|