code: func (c *Client) lockIdFromPath(path string) (string, error) {
  	list, _, err := c.client.Search(c.Remote, &lockSearchRequest{
  		Filters: []lockFilter{
  			{Property: "path", Value: path},
  		},
  	})
  
  	if err != nil {
  		return "", err
  	}
  
  	switch len(list.Locks) {
  	case 0:
  		return "", ErrNoMatchingLocks
  	case 1:
  		return list.Locks[0].Id, nil
  	default:
  		return "", ErrLockAmbiguous
  	}
  }
docs: // lockIdFromPath makes a call to the LFS API and resolves the ID for the locked
  // locked at the given path.
  //
  // If the API call failed, an error will be returned. If multiple locks matched
  // the given path (should not happen during real-world usage), an error will be
  // returnd. If no locks matched the given path, an error will be returned.
  //
  // If the API call is successful, and only one lock matches the given filepath,
  // then its ID will be returned, along with a value of "nil" for the error.