marinofaggiana 5 жил өмнө
parent
commit
d095988b18

+ 1 - 0
iOSClient/Main/CCMain.m

@@ -1230,6 +1230,7 @@
     [[NCCommunication sharedInstance] readFolderWithPath:serverUrl user:appDelegate.activeUserID password:appDelegate.activePassword completionHandler:^(NSArray<NCFile *> *files, NSError *error) {
         for (NCFile *file in files) {
             NSLog(file.path);
+            NSLog(file.etag);
         }
         NSLog(@"end");
     }];

+ 1 - 0
iOSClient/Networking/NCCommunication.swift

@@ -93,6 +93,7 @@ class NCCommunication: NSObject {
                     for element in elements {
                         let file = NCFile()
                         if let href = element["d:href"].text { file.path = href.removingPercentEncoding ?? "" }
+                        if let getetag = element["d:getetag"].text { file.etag = getetag.replacingOccurrences(of: "\"", with: "")}
                         files.append(file)
                     }
                 }