lib/private/Files/ObjectStore/ObjectStoreStorage.php 1 location
|
@@ 141-149 (lines=9) @@
|
| 138 |
|
* @param \OC\Files\Storage\Storage (optional) the storage to pass to the scanner |
| 139 |
|
* @return \OC\Files\ObjectStore\NoopScanner |
| 140 |
|
*/ |
| 141 |
|
public function getScanner($path = '', $storage = null) { |
| 142 |
|
if (!$storage) { |
| 143 |
|
$storage = $this; |
| 144 |
|
} |
| 145 |
|
if (!isset($this->scanner)) { |
| 146 |
|
$this->scanner = new NoopScanner($storage); |
| 147 |
|
} |
| 148 |
|
return $this->scanner; |
| 149 |
|
} |
| 150 |
|
|
| 151 |
|
public function getId() { |
| 152 |
|
return $this->id; |
apps/files_sharing/lib/External/Storage.php 1 location
|
@@ 143-151 (lines=9) @@
|
| 140 |
|
* @param \OC\Files\Storage\Storage $storage |
| 141 |
|
* @return \OCA\Files_Sharing\External\Scanner |
| 142 |
|
*/ |
| 143 |
|
public function getScanner($path = '', $storage = null) { |
| 144 |
|
if (!$storage) { |
| 145 |
|
$storage = $this; |
| 146 |
|
} |
| 147 |
|
if (!isset($this->scanner)) { |
| 148 |
|
$this->scanner = new Scanner($storage); |
| 149 |
|
} |
| 150 |
|
return $this->scanner; |
| 151 |
|
} |
| 152 |
|
|
| 153 |
|
/** |
| 154 |
|
* check if a file or folder has been updated since $time |