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

Method Size

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

Size returns the size of the given file in bytes.

(path string)

Source from the content-addressed store, hash-verified

37 LegacyPath(filename string, checksums *utils.ChecksumInfo) (string, error)
38 // Size returns the size of the given file in bytes.
39 Size(path string) (size int64, err error)
40 // Open returns ReadSeekerCloser to access the file
41 Open(path string) (ReadSeekerCloser, error)
42 // FilepathList returns file paths of all the files in the pool

Callers 15

TestSaveConfigMethod · 0.65
TestSaveYAMLConfigMethod · 0.65
TestSaveYAML2ConfigMethod · 0.65
LinkFromPoolMethod · 0.65
RemoveMethod · 0.65
VerifyMethod · 0.65
ImportMethod · 0.65
SizeMethod · 0.65
TestImportOkMethod · 0.65
TestImportMoveMethod · 0.65
TestSizeMethod · 0.65
TestStatMethod · 0.65

Implementers 5

PackagePoolfiles/package_pool.go
fakePoolfiles/public_test.go
PackagePoolazure/package_pool.go
fakeLocalPooljfrog/public_test.go
fakeRemotePooljfrog/public_test.go

Calls

no outgoing calls

Tested by 13

TestSaveConfigMethod · 0.52
TestSaveYAMLConfigMethod · 0.52
TestSaveYAML2ConfigMethod · 0.52
TestImportOkMethod · 0.52
TestImportMoveMethod · 0.52
TestSizeMethod · 0.52
TestStatMethod · 0.52
TestLinkMethod · 0.52
TestSymlinkMethod · 0.52
TestImportOkMethod · 0.52
TestSizeMethod · 0.52