Skip to content

Commit d1ea2b1

Browse files
committed
[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 <[email protected]>
1 parent 31c1b7d commit d1ea2b1

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
package containerfs
2+
3+
import (
4+
"path/filepath"
5+
6+
"github.com/docker/docker/internal/containerfs"
7+
)
8+
9+
// Deprecated: will be removed in the next release.
10+
func CleanScopedPath(path string) string {
11+
if len(path) >= 2 {
12+
if v := filepath.VolumeName(path); len(v) > 0 {
13+
path = path[len(v):]
14+
}
15+
}
16+
return filepath.Join(string(filepath.Separator), path)
17+
}
18+
19+
// Deprecated: will be removed in the next release.
20+
func EnsureRemoveAll(dir string) error {
21+
return containerfs.EnsureRemoveAll(dir)
22+
}

0 commit comments

Comments
 (0)