Skip to content
This repository has been archived by the owner on Jan 2, 2021. It is now read-only.

Commit

Permalink
changes method due to Crystal API change
Browse files Browse the repository at this point in the history
  • Loading branch information
samueleaton committed Aug 26, 2017
1 parent 721e84b commit 2090f7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/raze/static_file_indexer.cr
Expand Up @@ -12,7 +12,7 @@ class Raze::StaticFileIndexer
return
end

Dir.foreach "#{base_dir}#{directory}" do |f|
Dir.each_child "#{base_dir}#{directory}" do |f|
next if f == "." || f == ".."
if File.directory? "#{base_dir}#{directory}/#{f}"
# only index directory itself if "dir_listing" is enabled
Expand Down

0 comments on commit 2090f7c

Please sign in to comment.