mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
cloudstorage: Fix directory listing for some WebDAV servers (#9847)
(sub)folders on some WebDAV servers are not listed in cloudstorage due to strict xml element matching of <d:collection> elements.
This commit is contained in:
@@ -133,7 +133,7 @@ function WebDavApi:listFolder(address, user, pass, folder_path, folder_mode)
|
||||
item:find("<[^:]*:resourcetype></[^:]*:resourcetype>")
|
||||
|
||||
local item_path = (path == "" and has_trailing_slash) and item_name or path .. "/" .. item_name
|
||||
if item:find("<[^:]*:collection/>") then
|
||||
if item:find("<[^:]*:collection[^<]*/>") then
|
||||
item_name = item_name .. "/"
|
||||
if not is_current_dir then
|
||||
table.insert(webdav_list, {
|
||||
|
||||
Reference in New Issue
Block a user