Skip to content

Commit 0dd740a

Browse files
committed
Explain trashing in delete method
Signed-off-by: Claudio Cambra <developer@claudiocambra.com>
1 parent e5f7d9e commit 0dd740a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Sources/NextcloudFileProviderKit/Item/Item+Delete.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ import NextcloudKit
1212
import OSLog
1313

1414
public extension Item {
15+
// NOTE: The trashing parameter does not affect whether the server will trash this or not.
16+
// That's out of our hands. Instead, this is used internally to properly handle the metadata
17+
// update automatically when we conduct a move of an item to the trash.
1518
func delete(
1619
trashing: Bool = false,
1720
domain: NSFileProviderDomain? = nil,

0 commit comments

Comments
 (0)