Add Middleman::Util.all_files_under to get a recursive listing of files beneath a path, follows symlinks. Fixes #515
This commit is contained in:
parent
b67d4e7c82
commit
4b03c5e2df
5 changed files with 57 additions and 45 deletions
|
@ -112,9 +112,8 @@ module Middleman
|
|||
glob = "#{path}**/*"
|
||||
subset = @known_paths.select { |p| p.fnmatch(glob) }
|
||||
|
||||
path.find do |filepath|
|
||||
::Middleman::Util.all_files_under(path).each do |filepath|
|
||||
full_path = path + filepath
|
||||
next if full_path.directory?
|
||||
|
||||
if only_new
|
||||
next if subset.include?(full_path)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue