Skip to content
Snippets Groups Projects
Commit 7d6da68d authored by Robin Appelman's avatar Robin Appelman
Browse files

prove some compatibility with the old cache api

parent 6db81afa
Loading
......@@ -712,7 +712,7 @@ class View {
$files = $cache->getFolderContents($internalPath); //TODO: mimetype_filter
//add a folder for any mountpoint in this directory and add the sizes of other mountpoints to the folders
$mountPoints = Filesystem::getMountPoints($directory);
$mountPoints = Filesystem::getMountPoints($path);
$dirLength = strlen($path);
foreach ($mountPoints as $mountPoint) {
$subStorage = Filesystem::getStorage($mountPoint);
......@@ -733,6 +733,10 @@ class View {
}
}
foreach($files as $i => $file){
$files[$i]['type'] = $file['mimetype'] === 'httpd/unix-directory' ? 'dir' : 'file';
}
usort($files, "fileCmp"); //TODO: remove this once ajax is merged
return $files;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment