Content-Length: 278286 | pFad | https://github.com/moby/moby/commit/2502db6

C0 pkg/system: make EnsureRemoveAll unix-specific · moby/moby@2502db6 · GitHub
Skip to content

Commit 2502db6

Browse files
committed
pkg/system: make EnsureRemoveAll unix-specific
The tricks performed by EnsureRemoveAll only make sense for Linux and other Unices, so separate it out, and make EnsureRemoveAll for Windows just an alias of os.RemoveAll. This makes sure RecursiveUnmount is not called on Windows. Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
1 parent 4ce3d71 commit 2502db6

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

pkg/system/rm.go renamed to pkg/system/rm_unix.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// +build !windows
2+
13
package system // import "github.com/docker/docker/pkg/system"
24

35
import (

pkg/system/rm_windows.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
package system
2+
3+
import "os"
4+
5+
// EnsureRemoveAll is an alias to os.RemoveAll on Windows
6+
var EnsureRemoveAll = os.RemoveAll

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/moby/moby/commit/2502db6

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy