mirror of
https://github.com/containers/skopeo.git
synced 2025-09-10 11:09:47 +00:00
docker: remove github.com/docker/engine-api
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
11
vendor/github.com/vbatts/tar-split/archive/tar/common.go
generated
vendored
11
vendor/github.com/vbatts/tar-split/archive/tar/common.go
generated
vendored
@@ -327,3 +327,14 @@ func toASCII(s string) string {
|
||||
}
|
||||
return buf.String()
|
||||
}
|
||||
|
||||
// isHeaderOnlyType checks if the given type flag is of the type that has no
|
||||
// data section even if a size is specified.
|
||||
func isHeaderOnlyType(flag byte) bool {
|
||||
switch flag {
|
||||
case TypeLink, TypeSymlink, TypeChar, TypeBlock, TypeDir, TypeFifo:
|
||||
return true
|
||||
default:
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user