Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(DirectoryEnumerator): Remove deleted items from updated items #1410

Merged
merged 1 commit into from
Jan 28, 2025

Conversation

PhilippeWeidmann
Copy link
Member

@PhilippeWeidmann PhilippeWeidmann commented Jan 28, 2025

fix for KDRIVE-IOS-BWQ

If in the same action result the user has updated and deleted a file (eg. rename then delete). The fileprovider would crash because the updated file was invalidated.

This PR removes the file from the updatedItems if its also in the deletedItems

@adrien-coye adrien-coye force-pushed the fix-file-provider-enumerator branch from 7bcb48d to 56abcbd Compare January 28, 2025 11:39
Copy link
Contributor

@adrien-coye adrien-coye left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks good.
I did a rename + delete, no crash to report.

@adrien-coye adrien-coye merged commit abfd749 into master Jan 28, 2025
6 checks passed
@adrien-coye adrien-coye deleted the fix-file-provider-enumerator branch January 28, 2025 11:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants