diff --git a/tasks/grunt-md5.js b/tasks/grunt-md5.js
index <HASH>..<HASH> 100644
--- a/tasks/grunt-md5.js
+++ b/tasks/grunt-md5.js
@@ -38,7 +38,10 @@ module.exports = function(grunt) {
         grunt.fail.warn('Files object doesn\'t exist');
       }
 
-      filePair.src.forEach(function(srcFile) {
+      filePair.src.filter(function(filepath) {
+        return grunt.file.isFile(filepath);
+      })
+      .forEach(function(srcFile) {
         try {
           var basename = '';
           var destFile;
make sure grunt-md5 doesn't try to md5 non files