Sign in
fuchsia
/
third_party
/
github.com
/
moby
/
moby
/
c030578fe4e2bd948577f19981364f18e2dbe8a1
/
.
/
vendor
/
github.com
/
Microsoft
/
hcsshim
/
internal
/
wclayer
/
layerid.go
blob: 90df3bedceb65b507867689d144204cba14acbaa [
file
] [
log
] [
blame
]
package wclayer
import (
"path/filepath"
"github.com/Microsoft/hcsshim/internal/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)
}