Skip to content

Commit

Permalink
simplified ruby 'find .'
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Paramonov committed Jul 29, 2009
1 parent f153966 commit b970ddf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion empty_dir.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ def self.empty? dir_name
end
end

Dir.glob("#{Dir.pwd}/**/*").each do |file_name|
Dir["**/**"].each do |file_name|
puts file_name if File.directory? file_name and Dir.empty? file_name
end

0 comments on commit b970ddf

Please sign in to comment.