Skip to content

Commit

Permalink
fix(DirectoryEnumerator): Remove deleted items from updated items
Browse files Browse the repository at this point in the history
Signed-off-by: Philippe Weidmann <[email protected]>
  • Loading branch information
PhilippeWeidmann authored and adrien-coye committed Jan 28, 2025
1 parent 4756628 commit 56abcbd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kDriveFileProvider/Enumerators/DirectoryEnumerator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ final class DirectoryEnumerator: NSObject, NSFileProviderEnumerator {
}

deletedItems.append(NSFileProviderItemIdentifier(existingDeletedFile.id))
updatedItems.removeAll { $0.id == existingDeletedFile.id }
writableRealm.delete(existingDeletedFile)
}

Expand Down

0 comments on commit 56abcbd

Please sign in to comment.