Class: FileListGenerator
- Inherits:
-
Object
- Object
- FileListGenerator
- Defined in:
- lib/file_list_generator.rb
Class Method Summary collapse
Class Method Details
.begin(path_to_csv_file) ⇒ Object
2 3 4 5 6 7 8 9 10 |
# File 'lib/file_list_generator.rb', line 2 def self.begin(path_to_csv_file) File.open(path_to_csv_file,'w') do |s| Dir.glob('**/*') do |f| file = File.stat(f) puts "#{f} \t #{file.size}" s.puts "#{f} \t #{file.size}" end end end |