Files
kopia/vfs/node.go
Jarek Kowalski 78a676f884 mount support
2016-04-24 18:13:31 -07:00

22 lines
346 B
Go

package vfs
import (
fusefs "bazil.org/fuse"
"github.com/kopia/kopia/fs"
"golang.org/x/net/context"
)
type node struct {
manager *manager
*fs.Entry
}
func (n *node) Attr(ctx context.Context, a *fusefs.Attr) error {
a.Mode = n.FileMode
a.Size = uint64(n.FileSize)
a.Mtime = n.ModTime
a.Uid = n.OwnerID
a.Gid = n.GroupID
return nil
}