Windows: Fix use of IsAbs check

Signed-off-by: John Howard <jhoward@microsoft.com>
This commit is contained in:
John Howard 2015-08-26 12:37:01 -07:00
parent 01fe6537f1
commit e92906f717
2 changed files with 24 additions and 0 deletions

View file

@ -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)
}