Skip to content

Commit

Permalink
fix(DirectoryEnumerator): Remove deleted items from updated items (#1410
Browse files Browse the repository at this point in the history
)
  • Loading branch information
adrien-coye authored Jan 28, 2025
2 parents 4756628 + 56abcbd commit abfd749
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 abfd749

Please sign in to comment.