Method: FileUtils#populate_list_of_files_from_file
- Defined in:
- lib/batch_audio_convert/file_utils.rb
#populate_list_of_files_from_file(file_list, entry) ⇒ Object
Adds one file + its associated images if any
25 26 27 28 29 30 31 32 |
# File 'lib/batch_audio_convert/file_utils.rb', line 25 def populate_list_of_files_from_file(file_list, entry) logger.debug "\"#{entry}\" is a file. Processing..." file_list << entry # Find images if any Find.find(File.dirname(entry)) do |file| file_list << file if (File.file?(file) && is_image?(file)) end end |