Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #3 from jfcixmedia/master

Remove .DS_Store in the autoload helper
  • Loading branch information...
commit 57a98d1b7a4b63fbf0efce139f8e55a8ed4ee033 2 parents 8217d6d + df01e7a
@EtienneLem 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.