Permalink
Browse files

simplified ruby 'find .'

  • Loading branch information...
1 parent f153966 commit b970ddf73c177cc6639cde2d6be2069e93472c54 Andrey Paramonov committed Jul 29, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 empty_dir.rb
View
@@ -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.