Import copies file into package pool - srcPath is full path to source file as it is now - basename is desired human-readable name (canonical filename) - checksums are used to calculate file placement - move indicates whether srcPath can be removed
(srcPath, basename string, checksums *utils.ChecksumInfo, move bool, storage ChecksumStorage)
| 33 | // - checksums are used to calculate file placement |
| 34 | // - move indicates whether srcPath can be removed |
| 35 | Import(srcPath, basename string, checksums *utils.ChecksumInfo, move bool, storage ChecksumStorage) (path string, err error) |
| 36 | // LegacyPath returns legacy (pre 1.1) path to package file (relative to root) |
| 37 | LegacyPath(filename string, checksums *utils.ChecksumInfo) (string, error) |
| 38 | // Size returns the size of the given file in bytes. |
no outgoing calls