newPackageFS returns a packageFS for the given store path.
(storePath string)
| 397 | |
| 398 | // newPackageFS returns a packageFS for the given store path. |
| 399 | func newPackageFS(storePath string) *packageFS { |
| 400 | return &packageFS{ |
| 401 | FS: os.DirFS(storePath), |
| 402 | storePath: storePath, |
| 403 | } |
| 404 | } |
| 405 | |
| 406 | // Readlink returns the destination of a symlink. |
| 407 | func (p *packageFS) Readlink(path string) (string, error) { |
no outgoing calls
no test coverage detected