Skip to content

[Filesystem] Check if failed unlink was caused by permission denied #38652

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

Merged
merged 1 commit into from
Oct 21, 2020

Conversation

Nyholm
Copy link
Member

@Nyholm Nyholm commented Oct 20, 2020

Q A
Branch? 4.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets Fix #38650
License MIT
Doc PR

Check why we failed to unlink the file. If the file was missing, then no exception should be thrown. However, if we failed to unlink it because of permissions, we should throw an exception.

@derrabus
Copy link
Member

Can we somehow write a test for this? 🤔

@Nyholm
Copy link
Member Author

Nyholm commented Oct 20, 2020

Haha.

I thought I could get away without one.. =)

I'll add a test shortly

@Nyholm
Copy link
Member Author

Nyholm commented Oct 20, 2020

There you go

@fabpot fabpot changed the base branch from 4.4 to 3.4 October 21, 2020 04:37
@fabpot fabpot force-pushed the issue-38650-filesystem branch from 2995f48 to 1cde6ca Compare October 21, 2020 04:37
@fabpot
Copy link
Member

fabpot commented Oct 21, 2020

Thank you @Nyholm.

@fabpot fabpot merged commit 3ff9384 into symfony:3.4 Oct 21, 2020
@UBERPHP
Copy link

UBERPHP commented Oct 21, 2020

thanks @Nyholm

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

Successfully merging this pull request may close these issues.

5 participants