HenrikJoreteg/templatizer — pull request #9 by nixonchris (2013-05-23 22:25:46+00:00)
Title: Fixed .DS_Store error

Fixed a bug that results in the following behavior:

If there's a .DS_Store inside a folder in the templates path it, will create a bad folder name that includes the string .DS_Store.

The folders array will look like this:

[ 'folderOne',
'folderTwo',
'folderTwo/.DS_Store' ]

By isolating the base name in the path before checking for hidden files, you can avoid this error.