Skip to content

Commit

Permalink
Fix post-rebase changes (move of nkfile to item metadata conversion)
Browse files Browse the repository at this point in the history
Signed-off-by: Claudio Cambra <developer@claudiocambra.com>
  • Loading branch information
claucambra committed Dec 11, 2024
1 parent 9353a68 commit 543f41f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sources/NextcloudFileProviderKit/Item/Item+Modify.swift
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ public extension Item {
), error.fileProviderError)
}

let postDeleteMetadata = ItemMetadata.fromNKFile(targetItemNKFile, account: account)
let postDeleteMetadata = targetItemNKFile.toItemMetadata()
dbManager.addItemMetadata(postDeleteMetadata)

let postDeleteItem = Item(
Expand Down Expand Up @@ -617,7 +617,7 @@ public extension Item {
// Update state of child files
childFiles.removeFirst() // This is the target path, already scanned
for file in childFiles {
let metadata = ItemMetadata.fromNKFile(file, account: account)
let metadata = file.toItemMetadata()
dbManager.addItemMetadata(metadata)
}

Expand Down Expand Up @@ -689,7 +689,7 @@ public extension Item {
return (modifiedItem, NSFileProviderError(.cannotSynchronize))
}

let restoredItemMetadata = ItemMetadata.fromNKFile(target, account: account)
let restoredItemMetadata = target.toItemMetadata()
guard let parentItemIdentifier = dbManager.parentItemIdentifierFromMetadata(
restoredItemMetadata
) else {
Expand Down

0 comments on commit 543f41f

Please sign in to comment.