Fix path for shared documents

pull/1/head
Pranav Kant 8 years ago
parent 440eb9e27c
commit eb79866efd

@ -141,10 +141,11 @@ class Storage {
private static function processDocuments($rawDocuments){
$documents = array();
$view = \OC\Files\Filesystem::getView();
foreach($rawDocuments as $rawDocument){
$document = array(
'fileid' => $rawDocument->getId(),
'path' => $rawDocument->getInternalPath(),
'path' => $view->getPath($rawDocument->getId()),
'name' => $rawDocument->getName(),
'mimetype' => $rawDocument->getMimetype(),
'mtime' => $rawDocument->getMTime()

Loading…
Cancel
Save