|
@@ 212-218 (lines=7) @@
|
| 209 |
|
return $storage->is_dir($internalPath); |
| 210 |
|
} |
| 211 |
|
|
| 212 |
|
public function is_file($path) { |
| 213 |
|
if ($source = $this->getSourcePath($path)) { |
| 214 |
|
list($storage, $internalPath) = \OC\Files\Filesystem::resolvePath($source); |
| 215 |
|
return $storage->is_file($internalPath); |
| 216 |
|
} |
| 217 |
|
return false; |
| 218 |
|
} |
| 219 |
|
|
| 220 |
|
public function stat($path) { |
| 221 |
|
if ($path == '' || $path == '/') { |
|
@@ 447-453 (lines=7) @@
|
| 444 |
|
return false; |
| 445 |
|
} |
| 446 |
|
|
| 447 |
|
public function getMimeType($path) { |
| 448 |
|
if ($source = $this->getSourcePath($path)) { |
| 449 |
|
list($storage, $internalPath) = \OC\Files\Filesystem::resolvePath($source); |
| 450 |
|
return $storage->getMimeType($internalPath); |
| 451 |
|
} |
| 452 |
|
return false; |
| 453 |
|
} |
| 454 |
|
|
| 455 |
|
public function free_space($path) { |
| 456 |
|
$source = $this->getSourcePath($path); |
|
@@ 464-470 (lines=7) @@
|
| 461 |
|
return \OCP\Files\FileInfo::SPACE_UNKNOWN; |
| 462 |
|
} |
| 463 |
|
|
| 464 |
|
public function getLocalFile($path) { |
| 465 |
|
if ($source = $this->getSourcePath($path)) { |
| 466 |
|
list($storage, $internalPath) = \OC\Files\Filesystem::resolvePath($source); |
| 467 |
|
return $storage->getLocalFile($internalPath); |
| 468 |
|
} |
| 469 |
|
return false; |
| 470 |
|
} |
| 471 |
|
|
| 472 |
|
public function touch($path, $mtime = null) { |
| 473 |
|
if ($source = $this->getSourcePath($path)) { |
|
@@ 472-478 (lines=7) @@
|
| 469 |
|
return false; |
| 470 |
|
} |
| 471 |
|
|
| 472 |
|
public function touch($path, $mtime = null) { |
| 473 |
|
if ($source = $this->getSourcePath($path)) { |
| 474 |
|
list($storage, $internalPath) = \OC\Files\Filesystem::resolvePath($source); |
| 475 |
|
return $storage->touch($internalPath, $mtime); |
| 476 |
|
} |
| 477 |
|
return false; |
| 478 |
|
} |
| 479 |
|
|
| 480 |
|
/** |
| 481 |
|
* return mount point of share, relative to data/user/files |
|
@@ 585-591 (lines=7) @@
|
| 582 |
|
return false; |
| 583 |
|
} |
| 584 |
|
|
| 585 |
|
public function getETag($path) { |
| 586 |
|
if ($source = $this->getSourcePath($path)) { |
| 587 |
|
list($storage, $internalPath) = \OC\Files\Filesystem::resolvePath($source); |
| 588 |
|
return $storage->getETag($internalPath); |
| 589 |
|
} |
| 590 |
|
return null; |
| 591 |
|
} |
| 592 |
|
|
| 593 |
|
/** |
| 594 |
|
* unshare complete storage, also the grouped shares |