Beispiel #1
0
func (d *DIR) Attr(ctx context.Context, attr *fuse.Attr) error {
	stat := d.Entry.Stat
	attr.Mode = stat.Mode
	attr.Size = uint64(stat.Size)
	attr.Uid = stat.Uid
	attr.Gid = stat.Gid
	return nil
}
Beispiel #2
0
func (f *FILE) Attr(ctx context.Context, a *fuse.Attr) error {
	stat := f.Entry.Stat
	a.Mode = stat.Mode
	a.Size = uint64(stat.Size)
	a.Uid = stat.Uid
	a.Gid = stat.Gid

	return nil
}