blob: 5aba08420ffc7774f217b39bd3c55d628b5f7758 [file] [edit]
package containerfs
import (
"path/filepath"
"github.com/docker/docker/internal/containerfs"
)
// Deprecated: will be removed in the next release.
func CleanScopedPath(path string) string {
if len(path) >= 2 {
if v := filepath.VolumeName(path); len(v) > 0 {
path = path[len(v):]
}
}
return filepath.Join(string(filepath.Separator), path)
}
// Deprecated: will be removed in the next release.
func EnsureRemoveAll(dir string) error {
return containerfs.EnsureRemoveAll(dir)
}