summaryrefslogtreecommitdiffstats
path: root/libgo/go/os/path.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/os/path.go')
-rw-r--r--libgo/go/os/path.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/libgo/go/os/path.go b/libgo/go/os/path.go
index 82fade63ae2..bc14a783188 100644
--- a/libgo/go/os/path.go
+++ b/libgo/go/os/path.go
@@ -17,7 +17,7 @@ func MkdirAll(path string, perm uint32) error {
// If path exists, stop with success or error.
dir, err := Stat(path)
if err == nil {
- if dir.IsDirectory() {
+ if dir.IsDir() {
return nil
}
return &PathError{"mkdir", path, ENOTDIR}
@@ -48,7 +48,7 @@ func MkdirAll(path string, perm uint32) error {
// Handle arguments like "foo/." by
// double-checking that directory doesn't exist.
dir, err1 := Lstat(path)
- if err1 == nil && dir.IsDirectory() {
+ if err1 == nil && dir.IsDir() {
return nil
}
return err
@@ -75,7 +75,7 @@ func RemoveAll(path string) error {
}
return serr
}
- if !dir.IsDirectory() {
+ if !dir.IsDir() {
// Not a directory; return the error from Remove.
return err
}
OpenPOWER on IntegriCloud