Sign in
fuchsia
/
third_party
/
github.com
/
moby
/
moby
/
6949793bb1bfbc32bd787244e5dc06802b6159be
/
.
/
vendor
/
github.com
/
Microsoft
/
hcsshim
/
internal
/
wclayer
/
layerid.go
blob: 443596fbaaf18a4fc14c78cc8fb6e7500d92212d [
file
] [
log
] [
blame
]
package wclayer
import (
"path/filepath"
"github.com/Microsoft/go-winio/pkg/guid"
)
// LayerID returns the layer ID of a layer on disk.
func LayerID(path string) (guid.GUID, error) {
_, file := filepath.Split(path)
return NameToGuid(file)
}