Method: FileMonitoring::DirStat#initialize

Defined in:
lib/file_monitoring/monitor_path.rb

#initialize(path) ⇒ DirStat

Initializes new directory monitoring object

Arguments:

  • path - Dir location



146
147
148
149
150
151
152
153
154
155
156
# File 'lib/file_monitoring/monitor_path.rb', line 146

def initialize(path)
  @path = path
  @dirs = {}
  @files = {}
  @non_utf8_paths = {}  # Hash: ["path" -> true|false]

  # indicates if path EXISTS in file system.
  #   If true, file will not be removed during removed_unmarked_paths phase.
  @marked = false

end