mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
[27.1] pkg/containerfs: deprecate, and add temporary aliases
There's no (known) external consumers of this, but let's add a deprecation for the 27.1 release. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
22
pkg/containerfs/containerfs_deprecated.go
Normal file
22
pkg/containerfs/containerfs_deprecated.go
Normal file
@@ -0,0 +1,22 @@
|
||||
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)
|
||||
}
|
||||
Reference in New Issue
Block a user