Permalink
Browse files

Merge pull request #3 from jfcixmedia/master

Remove .DS_Store in the autoload helper
  • Loading branch information...
2 parents 8217d6d + df01e7a commit 57a98d1b7a4b63fbf0efce139f8e55a8ed4ee033 @EtienneLem committed Oct 27, 2012
Showing with 2 additions and 0 deletions.
  1. +1 −0 example/app/helpers/index.coffee
  2. +1 −0 lib/skeleton/template.coffee
@@ -3,6 +3,7 @@ fs = require 'fs'
# Recursively require a folder’s files
exports.autoload = autoload = (dir, app) ->
fs.readdirSync(dir).forEach (file) ->
+ return if file is ".DS_Store"
path = "#{dir}/#{file}"
stats = fs.lstatSync(path)
@@ -227,6 +227,7 @@ class Template
# Recursively require a folder’s files
exports.autoload = autoload = (dir, app) ->
fs.readdirSync(dir).forEach (file) ->
+ return if file is ".DS_Store"
path = "\#{dir}/\#{file}"
stats = fs.lstatSync(path)

0 comments on commit 57a98d1

Please sign in to comment.