lib/batch_audio_convert/file_utils.rb
# Adds all files in a directory structure
Adds all files in a directory structure
Adds all files in a directory structure
def is_directory_to_process?(dir)
    config[:extensions].keys.each do |filetype|
      Dir.foreach dir do |filename|
        return true if filename =~ /\.#{filetype}$/i
      end
    end
    logger.warn "Directory \"#{dir}\" discarded, as not containing files to convert..."
    false
  end
def is_directory_to_process? ( dir ) config [ :extensions ] . keys . each do | filetype | Dir . foreach dir do | filename | return true if filename =~ / \. #{ filetype } $ /i end end logger . warn "Directory \"#{dir}\" discarded, as not containing files to convert..." false end
Adds all files in a directory structure
Adds all files in a directory structure
dir