Skip to content

Commit

Permalink
correct behaviour for sub-directories, fixes #1
Browse files Browse the repository at this point in the history
  • Loading branch information
jokeyrhyme committed Aug 8, 2013
1 parent 72f4418 commit b0ae66b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/filelist.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit b0ae66b

Please sign in to comment.