kubernetesk8s.io/kubernetes/pkg/util/removeall Index | Files

package removeall

import "k8s.io/kubernetes/pkg/util/removeall"

Index

Functions

func RemoveAllOneFilesystem

func RemoveAllOneFilesystem(mounter mount.Interface, path string) error

RemoveAllOneFilesystem removes path and any children it contains. It removes everything it can but returns the first error it encounters. If the path does not exist, RemoveAll returns nil (no error). It makes sure it does not cross mount boundary, i.e. it does *not* remove files from another filesystems. Like 'rm -rf --one-file-system'. It is copied from RemoveAll() sources, with IsLikelyNotMountPoint

Source Files

removeall.go

Version
v1.9.8-beta.0
Published
Apr 18, 2018
Platform
js/wasm
Imports
5 packages
Last checked
1 minute ago

Tools for package owners.