diff --git a/library/rampage/core/resource/ModuleResourcePublishingStrategy.php b/library/rampage/core/resource/ModuleResourcePublishingStrategy.php
index <HASH>..<HASH> 100644
--- a/library/rampage/core/resource/ModuleResourcePublishingStrategy.php
+++ b/library/rampage/core/resource/ModuleResourcePublishingStrategy.php
@@ -102,7 +102,7 @@ class ModuleResourcePublishingStrategy
             }
 
             if ($file->isDir()) {
-                $this->copyDir($file->getPathname(), $target . '/' . $file->getFilename());
+                $this->copyDir($file->getPathname(), $target . '/' . $file->getFilename(), $filter);
                 continue;
             }
 
@@ -124,6 +124,10 @@ class ModuleResourcePublishingStrategy
         }
 
         return function(SplFileInfo $info) use ($extensions) {
+            if ($info->isDir()) {
+                return true;
+            }
+
             foreach ($extensions as $ext) {
                 if ($ext == '') {
                     continue;
Added option to filter file extensions for resource publishing
strategies.