mirror of
https://github.com/containers/skopeo.git
synced 2025-09-24 11:26:59 +00:00
Update module github.com/containers/storage to v1.47.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
This commit is contained in:
6
vendor/github.com/containers/storage/pkg/system/rm.go
generated
vendored
6
vendor/github.com/containers/storage/pkg/system/rm.go
generated
vendored
@@ -30,6 +30,12 @@ func EnsureRemoveAll(dir string) error {
|
||||
exitOnErr := make(map[string]int)
|
||||
maxRetry := 100
|
||||
|
||||
// Attempt a simple remove all first, this avoids the more expensive
|
||||
// RecursiveUnmount call if not needed.
|
||||
if err := os.RemoveAll(dir); err == nil {
|
||||
return nil
|
||||
}
|
||||
|
||||
// Attempt to unmount anything beneath this dir first
|
||||
if err := mount.RecursiveUnmount(dir); err != nil {
|
||||
logrus.Debugf("RecusiveUnmount on %s failed: %v", dir, err)
|
||||
|
Reference in New Issue
Block a user