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

Method Stat

files/package_pool.go:401–403  ·  view source on GitHub ↗

Stat returns Unix stat(2) info

(path string)

Source from the content-addressed store, hash-verified

399
400// Stat returns Unix stat(2) info
401func (pool *PackagePool) Stat(path string) (os.FileInfo, error) {
402 return os.Stat(filepath.Join(pool.rootPath, path))
403}
404
405// Link generates hardlink to destination path
406func (pool *PackagePool) Link(path, dstPath string) error {

Callers 2

SizeMethod · 0.95
TestLinkFromPoolMethod · 0.95

Calls 1

StatMethod · 0.65

Tested by 1

TestLinkFromPoolMethod · 0.76