Quick summary
Sometimes, during plugin development, a developer might want to deactivate and delete a plugin and then manually install it using a zip via the Upload Plugin screen.
If a plugin is deleted through the Plugins interface, and then an attempt is made to manually reinstall the plugin, the error "The destination directory already exists and could not be removed." appears. The only current way to work around this is to restart the Studio site.
Steps to reproduce
- Navigate to the wp-admin of a Studio site
- Manually upload a plugin zip via Plugins -> Add New -> Upload Plugin
- Delete the plugin via the Plugins list page
- Attempt to manually upload the plugin again
What you expected to happen
The plugin should upload successfully
What actually happened
The "The destination directory already exists and could not be removed" error appears.
Impact
One
Available workarounds?
No and the app is unusable
Platform
No response
Logs or notes
I assume this is related to how the filesystem is mounted when the Studio site is started.
Quick summary
Sometimes, during plugin development, a developer might want to deactivate and delete a plugin and then manually install it using a zip via the Upload Plugin screen.
If a plugin is deleted through the Plugins interface, and then an attempt is made to manually reinstall the plugin, the error "The destination directory already exists and could not be removed." appears. The only current way to work around this is to restart the Studio site.
Steps to reproduce
What you expected to happen
The plugin should upload successfully
What actually happened
The "The destination directory already exists and could not be removed" error appears.
Impact
One
Available workarounds?
No and the app is unusable
Platform
No response
Logs or notes
I assume this is related to how the filesystem is mounted when the Studio site is started.