os: new FileInfo, FileMode types + update tree

R=golang-dev, r, r, gri, bradfitz, iant, iant, nigeltao, n13m3y3r
CC=golang-dev
https://golang.org/cl/5416060
This commit is contained in:
Russ Cox 2011-11-30 12:04:16 -05:00
parent 03823b881c
commit 8dce57e169
50 changed files with 620 additions and 525 deletions

View file

@ -190,8 +190,8 @@ func TestDirJoin(t *testing.T) {
if err != nil {
t.Fatalf("stat of %s: %v", name, err)
}
if gfi.Ino != wfi.Ino {
t.Errorf("%s got different inode", name)
if !gfi.(*os.FileStat).SameFile(wfi.(*os.FileStat)) {
t.Errorf("%s got different file", name)
}
}
test(Dir("/etc/"), "/hosts")