OSPath translates a package-relative path to an operating system path.
(path string)
| 416 | |
| 417 | // OSPath translates a package-relative path to an operating system path. |
| 418 | func (p *packageFS) OSPath(path string) (string, error) { |
| 419 | local, err := filepath.Localize(path) |
| 420 | if err != nil { |
| 421 | return "", err |
| 422 | } |
| 423 | return filepath.Join(p.storePath, local), nil |
| 424 | } |
| 425 | |
| 426 | // allFiles iterates over all files in fsys starting at root. It silently |
| 427 | // ignores errors. |
no outgoing calls
no test coverage detected