code: def loop(self):
          
          while True:
              sleep(1)
              new_file_list = self.walk(self.file_path, {})
              if new_file_list != self.file_list:
                  if self.debug:
                      self.diff_list(new_file_list, self.file_list)
                  self.run_tests()
                  self.file_list = new_file_list
docs: Main loop daemon.