apps/dav/lib/connector/sabre/directory.php 1 location
|
@@ 204-208 (lines=5) @@
|
| 201 |
|
throw new \Sabre\DAV\Exception\NotFound('File with name ' . $path . ' could not be located'); |
| 202 |
|
} |
| 203 |
|
|
| 204 |
|
if ($info['mimetype'] == 'httpd/unix-directory') { |
| 205 |
|
$node = new \OCA\DAV\Connector\Sabre\Directory($this->fileView, $info, $this->tree); |
| 206 |
|
} else { |
| 207 |
|
$node = new \OCA\DAV\Connector\Sabre\File($this->fileView, $info); |
| 208 |
|
} |
| 209 |
|
if ($this->tree) { |
| 210 |
|
$this->tree->cacheNode($node); |
| 211 |
|
} |
apps/dav/lib/connector/sabre/objecttree.php 1 location
|
@@ 171-175 (lines=5) @@
|
| 168 |
|
throw new \Sabre\DAV\Exception\NotFound('File with name ' . $path . ' could not be located'); |
| 169 |
|
} |
| 170 |
|
|
| 171 |
|
if ($info->getType() === 'dir') { |
| 172 |
|
$node = new \OCA\DAV\Connector\Sabre\Directory($this->fileView, $info, $this); |
| 173 |
|
} else { |
| 174 |
|
$node = new \OCA\DAV\Connector\Sabre\File($this->fileView, $info); |
| 175 |
|
} |
| 176 |
|
|
| 177 |
|
$this->cache[$path] = $node; |
| 178 |
|
return $node; |