Skip to content

fix: Checking for file existence before deleting in Serializer.php #443

Merged
ezyang merged 1 commit intoezyang:masterfrom
dadkhah-dev:patch-1
Jun 6, 2025
Merged

fix: Checking for file existence before deleting in Serializer.php #443
ezyang merged 1 commit intoezyang:masterfrom
dadkhah-dev:patch-1

Conversation

@dadkhah-dev
Copy link
Contributor

fix : prevent deleting a file that does not exist #442

fix : prevent deleting a file that does not exist ezyang#442
@dadkhah-dev dadkhah-dev changed the title Checking for file existence before deleting in Serializer.php fix: Checking for file existence before deleting in Serializer.php Mar 3, 2025
Copy link
Owner

@ezyang ezyang left a comment

Choose a reason for hiding this comment

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

There's still a potential race condition here, so it would be better to unconditionally unlink and suppress file not found error if it occurs. But this is fine.

@ezyang ezyang merged commit 127ee2f into ezyang:master Jun 6, 2025
11 of 12 checks passed
@github-actions
Copy link

🎉 This PR is included in version 4.19.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants