code: def save_link(self, path_info):
          
          assert path_info["scheme"] == "local"
          path = path_info["path"]
  
          if not os.path.exists(path):
              return
  
          mtime, _ = get_mtime_and_size(path)
          inode = get_inode(path)
          relpath = os.path.relpath(path, self.root_dir)
  
          cmd = (
              "REPLACE INTO {}(path, inode, mtime) "
              'VALUES ("{}", {}, "{}")'.format(
                  self.LINK_STATE_TABLE, relpath, self._to_sqlite(inode), mtime
              )
          )
          self._execute(cmd)
docs: Adds the specified path to the list of links created by dvc. This
          list is later used on `dvc checkout` to cleanup old links.
  
          Args:
              path_info (dict): path info to add to the list of links.