Ind.ie is now Small Technology Foundation.
Commit 3788f62e authored by Aral Balkan's avatar Aral Balkan

Add a variation of the DS_Store file

parent ed1c0afd
......@@ -157,7 +157,7 @@ class ContentIndex
@indexFromDirectory: (directory) ->
fs.readdirAsync directory
.then (files) ->
filteredFiles = files.filter (file) -> file not in ['.DS_Store', 'readme.md', 'index.html', '.git', '.gitignore']
filteredFiles = files.filter (file) -> file not in ['.DS_Store', '._.DS_Store', 'readme.md', 'index.html', '.git', '.gitignore']
return filteredFiles
.catch (error) ->
throw new Error "Could not create index from directory #{directory}: #{error}"
......
......@@ -270,7 +270,7 @@ prepareInspectionsForLocalInquiry = ->
#
fs.readdirAsync archivePath
.then (files) ->
domains = (files.filter (file) -> file not in ['.DS_Store', 'index.html']).map (file) -> file.replace '.har.gz', ''
domains = (files.filter (file) -> file not in ['.DS_Store', '._.DS_Store', 'index.html']).map (file) -> file.replace '.har.gz', ''
inspections = domains.map (domain) -> return (-> inspect domain)
domainsToInspect = inspections.length
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment