def add_file(f)
      @files ||= []

      if f.respond_to?(:entries)
        f.each { |e| add_file(e) }
      else
        f = f.to_s
        if File.directory?(f) && !is_back_dir(f)
          entries = Dir.entries(f).delete_if { |e| is_back_dir(e) }
          entries.each { |e| add_file( File.join(f, e) ) }
        else

          unless f.empty? || is_back_dir(f)
            temp_file = File.new(f)
            size = temp_file.size
            temp_file.close
            @files << f unless size == 0
          end

        end
      end

      return @files
    end
def add_file(f)
      @files ||= []

      if f.respond_to?(:entries)
        f.each { |e| add_file(e) }
      else
        f = f.to_s
        if File.directory?(f) && !is_back_dir(f)
          entries = Dir.entries(f).delete_if { |e| is_back_dir(e) }
          entries.each { |e| add_file( File.join(f, e) ) }
        else

          unless f.empty? || is_back_dir(f)
            temp_file = File.new(f)
            size = temp_file.size
            temp_file.close
            @files << f unless size == 0
          end

        end
      end

      return @files
    end
Add files