Use the internal ownCloud view

This commit is contained in:
Lukas Reschke 2013-05-06 13:43:23 +03:00
parent d659d8e193
commit b13b19c58b

View file

@ -22,7 +22,7 @@ $result = array();
if ($dir) { if ($dir) {
$dirlisting = true; $dirlisting = true;
$fullpath = \OCP\Config::getSystemValue('datadirectory').$view->getAbsolutePath($dir); $fullpath = \OCP\Config::getSystemValue('datadirectory').$view->getAbsolutePath($dir);
$dirContent = opendir($fullpath); $dirContent = $view->opendir($fullpath);
$i = 0; $i = 0;
while($entryName = readdir($dirContent)) { while($entryName = readdir($dirContent)) {
if ( $entryName != '.' && $entryName != '..' ) { if ( $entryName != '.' && $entryName != '..' ) {