Method: CommandT::Scanner::FileScanner#initialize

Defined in:
lib/command-t/scanner/file_scanner.rb

#initialize(path = Dir.pwd, options = {}) ⇒ FileScanner

Returns a new instance of FileScanner.



20
21
22
23
24
25
26
27
28
29
30
31
# File 'lib/command-t/scanner/file_scanner.rb', line 20

def initialize(path = Dir.pwd, options = {})
  @paths                = {}
  @paths_keys           = []
  @path                 = path
  @max_depth            = options[:max_depth] || 15
  @max_files            = options[:max_files] || 100_000
  @max_caches           = options[:max_caches] || 1
  @scan_dot_directories = options[:scan_dot_directories] || false
  @wildignore           = options[:wildignore]
  @scan_submodules      = options[:git_scan_submodules] || false
  @include_untracked    = options[:git_include_untracked] || false
end