module Conscan::Explorer

Public Class Methods

explore(path) click to toggle source
# File lib/conscan/explorer.rb, line 5
def self.explore path
  path = File.expand_path(path)
  Dir.entries(path).each do |entry|
    if entry == '.' || entry == '..'
      next
    else
      entry = File.expand_path(entry, path)
      if File.directory? entry
        self.explore entry
      else
        Conscan::Scanner.scan entry
      end
    end
  end
end