This commit is contained in:
Alex Yatskov 2015-05-25 14:03:39 +09:00
parent 48d8aa99df
commit 5b55310dd7

2
dir.go
View File

@ -60,6 +60,7 @@ func (this *versionedDir) createDir(name string) (*versionedDir, error) {
} }
dir := newVersionedDir(node, this) dir := newVersionedDir(node, this)
this.dirs[name] = dir this.dirs[name] = dir
return dir, nil return dir, nil
} }
@ -79,6 +80,7 @@ func (this *versionedDir) createFile(name string, flags int) (*versionedFile, er
file := newVersionedFile(node, this) file := newVersionedFile(node, this)
file.handle = handle file.handle = handle
this.files[name] = file this.files[name] = file
return file, nil return file, nil
} }