|
@@ 239-245 (lines=7) @@
|
| 236 |
|
return $storage->is_dir($internalPath); |
| 237 |
|
} |
| 238 |
|
|
| 239 |
|
public function is_file($path) { |
| 240 |
|
if ($source = $this->getSourcePath($path)) { |
| 241 |
|
list($storage, $internalPath) = \OC\Files\Filesystem::resolvePath($source); |
| 242 |
|
return $storage->is_file($internalPath); |
| 243 |
|
} |
| 244 |
|
return false; |
| 245 |
|
} |
| 246 |
|
|
| 247 |
|
public function stat($path) { |
| 248 |
|
if ($path == '' || $path == '/') { |
|
@@ 475-481 (lines=7) @@
|
| 472 |
|
return false; |
| 473 |
|
} |
| 474 |
|
|
| 475 |
|
public function getMimeType($path) { |
| 476 |
|
if ($source = $this->getSourcePath($path)) { |
| 477 |
|
list($storage, $internalPath) = \OC\Files\Filesystem::resolvePath($source); |
| 478 |
|
return $storage->getMimeType($internalPath); |
| 479 |
|
} |
| 480 |
|
return false; |
| 481 |
|
} |
| 482 |
|
|
| 483 |
|
public function free_space($path) { |
| 484 |
|
$source = $this->getSourcePath($path); |
|
@@ 492-498 (lines=7) @@
|
| 489 |
|
return \OCP\Files\FileInfo::SPACE_UNKNOWN; |
| 490 |
|
} |
| 491 |
|
|
| 492 |
|
public function getLocalFile($path) { |
| 493 |
|
if ($source = $this->getSourcePath($path)) { |
| 494 |
|
list($storage, $internalPath) = \OC\Files\Filesystem::resolvePath($source); |
| 495 |
|
return $storage->getLocalFile($internalPath); |
| 496 |
|
} |
| 497 |
|
return false; |
| 498 |
|
} |
| 499 |
|
|
| 500 |
|
public function touch($path, $mtime = null) { |
| 501 |
|
if ($source = $this->getSourcePath($path)) { |
|
@@ 500-506 (lines=7) @@
|
| 497 |
|
return false; |
| 498 |
|
} |
| 499 |
|
|
| 500 |
|
public function touch($path, $mtime = null) { |
| 501 |
|
if ($source = $this->getSourcePath($path)) { |
| 502 |
|
list($storage, $internalPath) = \OC\Files\Filesystem::resolvePath($source); |
| 503 |
|
return $storage->touch($internalPath, $mtime); |
| 504 |
|
} |
| 505 |
|
return false; |
| 506 |
|
} |
| 507 |
|
|
| 508 |
|
/** |
| 509 |
|
* return mount point of share, relative to data/user/files |
|
@@ 617-623 (lines=7) @@
|
| 614 |
|
return false; |
| 615 |
|
} |
| 616 |
|
|
| 617 |
|
public function getETag($path) { |
| 618 |
|
if ($source = $this->getSourcePath($path)) { |
| 619 |
|
list($storage, $internalPath) = \OC\Files\Filesystem::resolvePath($source); |
| 620 |
|
return $storage->getETag($internalPath); |
| 621 |
|
} |
| 622 |
|
return null; |
| 623 |
|
} |
| 624 |
|
|
| 625 |
|
/** |
| 626 |
|
* unshare complete storage, also the grouped shares |