diff --git a/bl-plugins/remote-content/plugin.php b/bl-plugins/remote-content/plugin.php index 3e77399d..c0e266b2 100644 --- a/bl-plugins/remote-content/plugin.php +++ b/bl-plugins/remote-content/plugin.php @@ -47,6 +47,8 @@ class pluginRemoteContent extends Plugin { // Check Webhook $webhook = $this->getValue('webhook'); if ($this->webhook($webhook)) { + $this->cleanUp(); + // Download files $this->downloadFiles(); @@ -98,6 +100,13 @@ class pluginRemoteContent extends Plugin { return true; } + private function cleanUp() + { + $workspace = $this->workspace(); + Filesystem::deleteRecursive($workspace.DS); + return true; + } + private function generateContent() { global $pages;