code: def detect(self, volume_system, vstype='detect'):
          
  
          path = volume_system.parent._paths['vss']
  
          try:
              volume_info = _util.check_output_(["vshadowinfo", "-o", str(volume_system.parent.offset),
                                                 volume_system.parent.get_raw_path()])
          except Exception as e:
              logger.exception("Failed obtaining info from the volume shadow copies.")
              raise SubsystemError(e)
  
          current_store = None
          for line in volume_info.splitlines():
              line = line.strip()
              if line.startswith("Store:"):
                  idx = line.split(":")[-1].strip()
                  current_store = volume_system._make_subvolume(
                      index=self._format_index(volume_system, idx), flag='alloc', offset=0
                  )
                  current_store._paths['vss_store'] = os.path.join(path, 'vss' + idx)
                  current_store.info['fsdescription'] = 'VSS Store'
              elif line.startswith("Volume size"):
                  current_store.size = int(line.split(":")[-1].strip().split()[0])
              elif line.startswith("Creation time"):
                  current_store.info['creation_time'] = line.split(":")[-1].strip()
  
          return volume_system.volumes
docs: Detect volume shadow copy volumes in the specified path.