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.
pull/9863/head
Steady Quad 1 year ago committed by GitHub
parent 7b2ac4769f
commit fa9f0acf5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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, {

Loading…
Cancel
Save