@@ -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");
}];
@@ -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)