diff --git a/chrootarchive/diff_windows.go b/chrootarchive/diff_windows.go index 72289c8..0c9b38e 100644 --- a/chrootarchive/diff_windows.go +++ b/chrootarchive/diff_windows.go @@ -9,6 +9,9 @@ import ( "github.com/docker/docker/pkg/archive" ) +// ApplyLayer parses a diff in the standard layer format from `layer`, and +// applies it to the directory `dest`. Returns the size in bytes of the +// contents of the layer. func ApplyLayer(dest string, layer archive.ArchiveReader) (size int64, err error) { dest = filepath.Clean(dest) decompressed, err := archive.DecompressStream(layer)