Method: FileMonitoring::DirStat#handle_dir
- Defined in:
- lib/file_monitoring/monitor_path.rb
#handle_dir(globed_path, file_attr_to_checksum) ⇒ Object
400 401 402 403 404 405 406 407 408 409 410 411 412 |
# File 'lib/file_monitoring/monitor_path.rb', line 400 def handle_dir(globed_path, file_attr_to_checksum) # ------------------------------ DIR ----------------------- child_stat = @dirs[globed_path] unless child_stat # ----------- ADD NEW DIR child_stat = DirStat.new(globed_path) add_dir(child_stat) write_to_log("NEW dir: " + globed_path) end child_stat.marked = true # recursive call for dirs child_stat.monitor(file_attr_to_checksum) end |