mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Cloudstorage WebDAV: fix leading slash for root folder (#9061)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user