diff --git a/lib/filelist.js b/lib/filelist.js index 13f68ee..ac48d5c 100644 --- a/lib/filelist.js +++ b/lib/filelist.js @@ -79,10 +79,10 @@ FileList.fromPath = function (dir) { return; } results = []; + files = files.filter(function (file) { + return file[file.length - 1] !== '/'; + }); files.forEach(function (file) { - if (file[file.length - 1] === '/') { - return; // skip directories - } file = path.join(dir, file); stat(file).done(function (stat) { var fl; diff --git a/package.json b/package.json index d065c18..908e10a 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "cdn-sync", "description": "deflate / synchronise assets to a CDN", - "version": "0.1.1", + "version": "0.1.2", "homepage": "https://github.com/jokeyrhyme/cdn-sync", "author": { "name": "Ron Waldon",