mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Windows: Fix use of IsAbs check
Signed-off-by: John Howard <jhoward@microsoft.com>
This commit is contained in:
parent
5dadfa8b69
commit
f11ba3135b
3 changed files with 25 additions and 1 deletions
|
|
@ -4,6 +4,7 @@ package system
|
|||
|
||||
import (
|
||||
"os"
|
||||
"path/filepath"
|
||||
)
|
||||
|
||||
// MkdirAll creates a directory named path along with any necessary parents,
|
||||
|
|
@ -11,3 +12,8 @@ import (
|
|||
func MkdirAll(path string, perm os.FileMode) error {
|
||||
return os.MkdirAll(path, perm)
|
||||
}
|
||||
|
||||
// IsAbs is a platform-specific wrapper for filepath.IsAbs.
|
||||
func IsAbs(path string) bool {
|
||||
return filepath.IsAbs(path)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue