|
|
|
|
@ -24,6 +24,7 @@ |
|
|
|
|
|
|
|
|
|
namespace OC\Files\ObjectStore; |
|
|
|
|
|
|
|
|
|
use Icewind\Streams\IteratorDirectory; |
|
|
|
|
use OCP\Files\ObjectStore\IObjectStore; |
|
|
|
|
|
|
|
|
|
class ObjectStoreStorage extends \OC\Files\Storage\Common { |
|
|
|
|
@ -216,9 +217,7 @@ class ObjectStoreStorage extends \OC\Files\Storage\Common { |
|
|
|
|
$files[] = $file['name']; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
\OC\Files\Stream\Dir::register('objectstore' . $path . '/', $files); |
|
|
|
|
|
|
|
|
|
return opendir('fakedir://objectstore' . $path . '/'); |
|
|
|
|
return IteratorDirectory::wrap($files); |
|
|
|
|
} catch (\Exception $e) { |
|
|
|
|
\OCP\Util::writeLog('objectstore', $e->getMessage(), \OCP\Util::ERROR); |
|
|
|
|
return false; |
|
|
|
|
|