Cloudstorage WebDAV: fix leading slash for root folder (#9061)

reviewable/pr9065/r1
hius07 2 years ago committed by GitHub
parent 86c35ad066
commit 9de0df81da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -122,7 +122,7 @@ function WebDavApi:listFolder(address, user, pass, folder_path)
local is_not_collection = item:find("<[^:]*:resourcetype/>") or
item:find("<[^:]*:resourcetype></[^:]*:resourcetype>")
local item_path = path .. "/" .. item_name
local item_path = path == "" and item_name or path .. "/" .. item_name
if item:find("<[^:]*:collection/>") then
item_name = item_name .. "/"
if not is_current_dir then

Loading…
Cancel
Save