Use the internal ownCloud view

This commit is contained in:
Lukas Reschke 2013-05-06 13:43:23 +03:00
parent d659d8e193
commit b13b19c58b
1 changed files with 1 additions and 1 deletions

View File

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