code: func (c *Client) IsIgnoredFile(fullpath string) bool {
  	c.initIgnoredFilesOnce.Do(c.initIgnoredFiles)
  	return c.ignoreChecker(fullpath)
  }
docs: // IsIgnoredFile returns whether the file at fullpath should be ignored by pk-put.
  // The fullpath is checked against the ignoredFiles list, trying the following rules in this order:
  // 1) star-suffix style matching (.e.g *.jpg).
  // 2) Shell pattern match as done by http://golang.org/pkg/path/filepath/#Match
  // 3) If the pattern is an absolute path to a directory, fullpath matches if it is that directory or a child of it.
  // 4) If the pattern is a relative path, fullpath matches if it has pattern as a path component (i.e the pattern is a part of fullpath that fits exactly between two path separators).