2015-04-23 18:55:36 -04:00
|
|
|
// +build !windows
|
|
|
|
|
|
|
|
package system
|
|
|
|
|
|
|
|
import (
|
|
|
|
"os"
|
2015-08-26 15:37:01 -04:00
|
|
|
"path/filepath"
|
2015-04-23 18:55:36 -04:00
|
|
|
)
|
|
|
|
|
2015-07-28 12:13:12 -04:00
|
|
|
// MkdirAll creates a directory named path along with any necessary parents,
|
|
|
|
// with permission specified by attribute perm for all dir created.
|
2015-04-23 18:55:36 -04:00
|
|
|
func MkdirAll(path string, perm os.FileMode) error {
|
|
|
|
return os.MkdirAll(path, perm)
|
|
|
|
}
|
2015-08-26 15:37:01 -04:00
|
|
|
|
|
|
|
// IsAbs is a platform-specific wrapper for filepath.IsAbs.
|
|
|
|
func IsAbs(path string) bool {
|
|
|
|
return filepath.IsAbs(path)
|
|
|
|
}
|