Skip to content

Commit

Permalink
Merge pull request #6 from alexlarsson/fix-ApplyLayer-remove
Browse files Browse the repository at this point in the history
archive.ApplyLayer() remove files recursively
  • Loading branch information
Solomon Hykes committed Nov 8, 2013
2 parents c1563de + 484804a commit 78ef0bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions archive/diff.go
Expand Up @@ -35,7 +35,7 @@ func ApplyLayer(dest string, layer Archive) error {
return err
} else if matched {
log.Printf("Removing aufs metadata %s", fullPath)
_ = os.Remove(fullPath)
_ = os.RemoveAll(fullPath)
}

filename := filepath.Base(path)
Expand All @@ -47,7 +47,7 @@ func ApplyLayer(dest string, layer Archive) error {
_ = os.Remove(rmTargetPath)
// Remove the whiteout itself
log.Printf("Removing whiteout %s", fullPath)
_ = os.Remove(fullPath)
_ = os.RemoveAll(fullPath)
}
return nil
})
Expand Down

0 comments on commit 78ef0bd

Please sign in to comment.