Skip to content

Commit

Permalink
nc:hidden added
Browse files Browse the repository at this point in the history
Signed-off-by: Marino Faggiana <[email protected]>
  • Loading branch information
marinofaggiana committed Nov 15, 2023
1 parent f2429dc commit ba28f6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/NextcloudKit/NKModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -890,8 +890,8 @@ class NKDataFileXML: NSObject {
file.livePhotoFile = livePhotoFile
}

if let hidden = propstat["d:prop", "nc:hidden"].int {
file.hidden = NSNumber(integerLiteral: hidden).boolValue
if let hidden = propstat["d:prop", "nc:hidden"].text {
file.hidden = (hidden as NSString).boolValue
}

let results = self.nkCommonInstance.getInternalType(fileName: file.fileName, mimeType: file.contentType, directory: file.directory)
Expand Down

0 comments on commit ba28f6b

Please sign in to comment.