After closing T3763, files in the root folder of owncloud are listed in chwala but subfolders are not properly displayed.
Folders are listed as files with 0 bytes.
In webdav_file_storage.php line 577 :
$is_dir = in_array('{DAV:}collection', $props['{DAV:}resourcetype']->ResourceType); always return 0
Replacing it with :
$is_dir = isset( $props['{DAV:}resourcetype']); seems to do the job better ( resourcetype is NULL for files) folders are skipped but this way the folders are not listed at all