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