mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
f11ba3135b
Signed-off-by: John Howard <jhoward@microsoft.com>
19 lines
426 B
Go
19 lines
426 B
Go
// +build !windows
|
|
|
|
package system
|
|
|
|
import (
|
|
"os"
|
|
"path/filepath"
|
|
)
|
|
|
|
// MkdirAll creates a directory named path along with any necessary parents,
|
|
// with permission specified by attribute perm for all dir created.
|
|
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)
|
|
}
|