| @@ 213-225 (lines=13) @@ | ||
| 210 | * @param string $path |
|
| 211 | * @return boolean |
|
| 212 | */ |
|
| 213 | public function rmdir($path) { |
|
| 214 | ||
| 215 | // never delete a share mount point |
|
| 216 | if (empty($path)) { |
|
| 217 | return false; |
|
| 218 | } |
|
| 219 | ||
| 220 | if (($source = $this->getSourcePath($path)) && $this->isDeletable($path)) { |
|
| 221 | list($storage, $internalPath) = \OC\Files\Filesystem::resolvePath($source); |
|
| 222 | return $storage->rmdir($internalPath); |
|
| 223 | } |
|
| 224 | return false; |
|
| 225 | } |
|
| 226 | ||
| 227 | public function opendir($path) { |
|
| 228 | $source = $this->getSourcePath($path); |
|
| @@ 360-373 (lines=14) @@ | ||
| 357 | * @param string $path |
|
| 358 | * @return boolean |
|
| 359 | */ |
|
| 360 | public function unlink($path) { |
|
| 361 | ||
| 362 | // never delete a share mount point |
|
| 363 | if (empty($path)) { |
|
| 364 | return false; |
|
| 365 | } |
|
| 366 | if ($source = $this->getSourcePath($path)) { |
|
| 367 | if ($this->isDeletable($path)) { |
|
| 368 | list($storage, $internalPath) = \OC\Files\Filesystem::resolvePath($source); |
|
| 369 | return $storage->unlink($internalPath); |
|
| 370 | } |
|
| 371 | } |
|
| 372 | return false; |
|
| 373 | } |
|
| 374 | ||
| 375 | public function rename($path1, $path2) { |
|
| 376 | $this->init(); |
|