1234567891011121314151617181920212223242526 |
- package lfsutil
- import (
- "path/filepath"
- )
- type Storage string
- const (
- StorageLocal Storage = "local"
- )
- func StorageLocalPath(root string, oid OID) string {
- if !ValidOID(oid) {
- return ""
- }
- return filepath.Join(root, string(oid[0]), string(oid[1]), string(oid))
- }
|