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

[Local Adapter] directory deletion #610

Merged
merged 2 commits into from
Jun 5, 2019

Conversation

nicolasmure
Copy link
Contributor

Completes #582 (cherry picked)

As @NiR- pointed out, Gaufrette (and so the Filesystem) do not aim to support directories.
We only support objects identified by keys. However, the directory deletion seems to be a requested feature by the community. This PR completes the requested changes of #582.

As the directory deletion is very specific to the Local Adapter, you have to explicitely retrieve the adapter in order to use it :

$filesystem->getAdapter()->delete($key);

@nicolasmure nicolasmure requested a review from akerouanton June 4, 2019 16:43
@nicolasmure nicolasmure force-pushed the feature/local-adapter-delete-directory branch 4 times, most recently from 334c143 to ee26475 Compare June 4, 2019 17:15
@nicolasmure nicolasmure force-pushed the feature/local-adapter-delete-directory branch from ee26475 to 0013457 Compare June 5, 2019 07:40
@nicolasmure nicolasmure requested a review from akerouanton June 5, 2019 10:01
@nicolasmure nicolasmure force-pushed the feature/local-adapter-delete-directory branch from 0013457 to 8b23f73 Compare June 5, 2019 10:21
@nicolasmure
Copy link
Contributor Author

Thank you @athos7933 !

@nicolasmure nicolasmure merged commit 59ac94b into master Jun 5, 2019
@nicolasmure nicolasmure deleted the feature/local-adapter-delete-directory branch June 5, 2019 12:48
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