-
Notifications
You must be signed in to change notification settings - Fork 106
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
Catch notfound exception on deleting non existing file #122
base: master
Are you sure you want to change the base?
Catch notfound exception on deleting non existing file #122
Conversation
@matthewgoslett can you have a look at this please? 👍 |
@matthewgoslett poke ;) |
@matthewgoslett poke :) |
1 similar comment
@matthewgoslett poke :) |
Hey. Sorry, I haven't been at the organisation Superbalist for quite a few
years now and am no longer involved in this project.
…On Wed, 11 Jan 2023 at 22:33, Stefan van Essen ***@***.***> wrote:
@matthewgoslett <https://github.com/matthewgoslett> poke :)
—
Reply to this email directly, view it on GitHub
<#122 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAL7XH5IGGUU3K4BHEIIPPDWR4RJXANCNFSM5FOVT4IQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***
com>
|
Hi @matthewgoslett thanks for letting me know, is there anyone else I could reach out to? |
@shad0wfir3 It seems you are the last person to have merged something, can I ask you to look at this PR? I'm not quite sure how to mention @superbalist/core from the CODEOWNERS file, but saw your name. |
@shad0wfir3 poke :) |
Issue
Projects using FlySystem can use League\Flysystem\AdapterInterface::deleteDir() to remove a directory from a filesystem.
This should return a boolean to indicate whether this succeeded. This GCP implementation does however throw an exception.
This Pull Request fixes the issue.
An example where this happens is in Shopware 6, described here shopware/shopware#2108
Reproduction
The fix
The fix is quite easy actually: catch the exception thrown by the Google Cloud PHP API, so this implementation of the AdapterInterface matches the expected behaviour.