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

deletePlugin() failed to delete plugin folder with contents #135

Merged
merged 1 commit into from
Apr 3, 2017

Conversation

janhoy
Copy link
Member

@janhoy janhoy commented Apr 3, 2017

deletePlugin(id) which is called by UpdateManager.uninstallPlugin(id) failed since the PluginRepository.deletePluginPath() call used Files.deleteIfExists(path) which is not able to delete recursively.

The fix is to use the already existing FileUtils.delete(path), which I modified to java.nio style and no follow symlinks.

…id)` failed since the `PluginRepository.deletePluginPath()` call used `Files.deleteIfExists(path)` which is not able to delete recursively.

The fix is to use the already existing `FileUtils.delete(path)`, which I modified to `java.nio` style and no follow symlinks.
@coveralls
Copy link

coveralls commented Apr 3, 2017

Coverage Status

Coverage increased (+0.6%) to 24.323% when pulling 6680328 on cominvent:delete-recursive into 042fec5 on decebals:master.

@decebals decebals merged commit a77245a into pf4j:master Apr 3, 2017
@decebals
Copy link
Member

decebals commented Apr 3, 2017

Thanks!

@janhoy janhoy deleted the delete-recursive branch April 3, 2017 12:49
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.

3 participants