MCPcopy Create free account
hub / github.com/aptly-dev/aptly / Link

Method Link

files/package_pool.go:406–408  ·  view source on GitHub ↗

Link generates hardlink to destination path

(path, dstPath string)

Source from the content-addressed store, hash-verified

404
405// Link generates hardlink to destination path
406func (pool *PackagePool) Link(path, dstPath string) error {
407 return os.Link(filepath.Join(pool.rootPath, path), dstPath)
408}
409
410// Symlink generates symlink to destination path
411func (pool *PackagePool) Symlink(path, dstPath string) error {

Callers

nothing calls this directly

Calls 1

LinkMethod · 0.65

Tested by

no test coverage detected