marinofaggiana 5 жил өмнө
parent
commit
1ebfd68da7

+ 1 - 2
iOSClient/Networking/NCCommunication.swift

@@ -88,12 +88,11 @@ class NCCommunication: NSObject {
             case .success( _):
                 var files = [NCFile]()
                 if let data = response.data {
-                    
                     let xml = XML.parse(data)
                     let elements = xml["d:multistatus", "d:response"]
                     for element in elements {
                         let file = NCFile()
-                        if let href = element["d:href"].text { file.path = href }
+                        if let href = element["d:href"].text { file.path = href.removingPercentEncoding ?? "" }
                         files.append(file)
                     }
                 }