This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Remove .DS_Store in the autoload helper

  • Loading branch information...
1 parent 8217d6d commit df01e7a422ed983694b3f6d72fde221a525aacf1 jfcixmedia 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 df01e7a

Please sign in to comment.