src/server/pkg/hashtree/db.go
func (o *Ordered) PutFile(path string, hash []byte, size int64, fileNodeProto *FileNodeProto) {
	path = clean(path)
	nodeProto := &NodeProto{
		Name:        base(path),
		Hash:        hash,
		SubtreeSize: size,
		FileNode:    fileNodeProto,
	}
	o.putFile(path, nodeProto)
}
func (o *Ordered) PutFile(path string, hash []byte, size int64, fileNodeProto *FileNodeProto) {
	path = clean(path)
	nodeProto := &NodeProto{
		Name:        base(path),
		Hash:        hash,
		SubtreeSize: size,
		FileNode:    fileNodeProto,
	}
	o.putFile(path, nodeProto)
}
// PutFile puts a file in the hashtree.