Sign in
fuchsia
/
third_party
/
github.com
/
moby
/
moby
/
e2f226b5b41c958fa518f677eb213eb1462f90a8
/
.
/
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)
}