Pathname.exist? != File.exists?
This commit is contained in:
parent
00f232cf20
commit
deb6bddaf6
2 changed files with 2 additions and 2 deletions
|
@ -107,7 +107,7 @@ module Middleman
|
|||
# @param [Boolean] only_new Whether we only look for new files
|
||||
# @return [void]
|
||||
def reload_path(path, only_new=false)
|
||||
return unless path.exists?
|
||||
return unless path.exist?
|
||||
|
||||
glob = "#{path}**/*"
|
||||
subset = @known_paths.select { |p| p.fnmatch(glob) }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue