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

Method Stat

aptly/interfaces.go:51–51  ·  view source on GitHub ↗

Stat returns Unix stat(2) info

(path string)

Source from the content-addressed store, hash-verified

49type LocalPackagePool interface {
50 // Stat returns Unix stat(2) info
51 Stat(path string) (os.FileInfo, error)
52 // GenerateTempPath generates temporary path for download (which is fast to import into package pool later on)
53 GenerateTempPath(filename string) (string, error)
54 // Link generates hardlink to destination path

Callers 15

LinkFromPoolMethod · 0.95
TestSaveConfigMethod · 0.65
TestSaveYAMLConfigMethod · 0.65
TestSaveYAML2ConfigMethod · 0.65
DirIsAccessibleFunction · 0.65
TestCopyFileMethod · 0.65
RemoveMethod · 0.65
VerifyMethod · 0.65
ImportMethod · 0.65
StatMethod · 0.65
TestMkDirMethod · 0.65
TestPutFileMethod · 0.65

Implementers 3

PackagePoolfiles/package_pool.go
fakeLocalPoolfiles/public_test.go
fakeLocalPooljfrog/public_test.go

Calls

no outgoing calls

Tested by 15

TestSaveConfigMethod · 0.52
TestSaveYAMLConfigMethod · 0.52
TestSaveYAML2ConfigMethod · 0.52
TestCopyFileMethod · 0.52
TestMkDirMethod · 0.52
TestPutFileMethod · 0.52
TestRenameFileMethod · 0.52
TestRemoveDirsMethod · 0.52
TestRemoveMethod · 0.52
TestLinkFromPoolMethod · 0.52
isSameDeviceFunction · 0.52
TestImportOkMethod · 0.52