Index: src/pkg/os/path.go |
=================================================================== |
--- a/src/pkg/os/path.go |
+++ b/src/pkg/os/path.go |
@@ -17,7 +17,7 @@ |
// 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 @@ |
// 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 @@ |
} |
return serr |
} |
- if !dir.IsDirectory() { |
+ if !dir.IsDir() { |
// Not a directory; return the error from Remove. |
return err |
} |