marinofaggiana 5 жил өмнө
parent
commit
12d75923c1

+ 4 - 3
iOSClient/Networking/NCCommunication.swift

@@ -175,6 +175,7 @@ class NCCommunication: SessionDelegate {
 
         <is-encrypted xmlns=\"http://nextcloud.org/ns\"/>
         <has-preview xmlns=\"http://nextcloud.org/ns\"/>
+        <mount-type xmlns=\"http://nextcloud.org/ns\"/>
 
         </d:prop>
         </d:propfind>
@@ -265,9 +266,6 @@ class NCCommunication: SessionDelegate {
                         if let favorite = propstat["d:prop", "oc:favorite"].text {
                             file.favorite = (favorite as NSString).boolValue
                         }
-                        if let sharetypes = propstat["d:prop", "oc:share-types"].text {
-                            file.shareType = sharetypes
-                        }
                         if let ownerid = propstat["d:prop", "oc:owner-id"].text {
                             file.ownerId = ownerid
                         }
@@ -285,6 +283,9 @@ class NCCommunication: SessionDelegate {
                         if let haspreview = propstat["d:prop", "nc:has-preview"].text {
                             file.hasPreview = (haspreview as NSString).boolValue
                         }
+                        if let mounttype = propstat["d:prop", "nc:mount-type"].text {
+                            file.mountType = mounttype
+                        }
                         
                         isNotFirstFileOfList = true;
                         files.append(file)

+ 0 - 1
iOSClient/Networking/NCCommunicationModel.swift

@@ -46,7 +46,6 @@ import Foundation
     @objc var quotaUsedBytes: Double = 0
     @objc var quotaAvailableBytes: Double = 0
     @objc var resourceType = ""
-    @objc var shareType = ""
     @objc var size: Double = 0
     @objc var trashbinFileName = ""
     @objc var trashbinOriginalLocation = ""