code: def _update_device_from_fs(self, device):
          
          try:
              directory_entries = listdir(device["mount_point"])
  
              # Always try to update using daplink compatible boards processself.
              # This is done for backwards compatibility.
              lowercase_directory_entries = [e.lower() for e in directory_entries]
              if self.MBED_HTM_NAME.lower() in lowercase_directory_entries:
                  self._update_device_from_htm(device)
  
          except (OSError, IOError) as e:
              logger.warning(
                  'Marking device with mount point "%s" as unmounted due to the '
                  "following error: %s",
                  device["mount_point"],
                  e,
              )
              device["mount_point"] = None
docs: Updates the device information based on files from its 'mount_point'
              @param device Dictionary containing device information