Parent

Methods

Listen::Directory

Attributes

options[RW]
path[RW]

Public Class Methods

new(path, options = {}) click to toggle source
# File lib/listen/directory.rb, line 5
def initialize(path, options = {})
  @path    = path
  @options = options
end

Public Instance Methods

scan() click to toggle source
# File lib/listen/directory.rb, line 10
def scan
  _update_record
  _all_entries.each do |entry_path, data|
    case data[:type]
    when 'File' then _async_change(entry_path, options.merge(type: 'File'))
    when 'Dir'
      _async_change(entry_path, options.merge(type: 'Dir')) if _recursive_scan?(entry_path)
    end
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.