Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove .DS_Store in the autoload helper

  • Loading branch information...
commit df01e7a422ed983694b3f6d72fde221a525aacf1 1 parent 8217d6d
jfcixmedia authored
View
1  example/app/helpers/index.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)
View
1  lib/skeleton/template.coffee
@@ -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)
Please sign in to comment.
Something went wrong with that request. Please try again.