marinofaggiana 5 years ago
parent
commit
d095988b18
2 changed files with 2 additions and 0 deletions
  1. 1 0
      iOSClient/Main/CCMain.m
  2. 1 0
      iOSClient/Networking/NCCommunication.swift

+ 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)
                     }
                 }