func zipAttr(f *zip.File, a *fuse.Attr) { a.Size = f.UncompressedSize64 a.Mode = f.Mode() a.Mtime = f.ModTime() a.Ctime = f.ModTime() a.Crtime = f.ModTime() }
func (f *File) Attr(ctx context.Context, a *fuse.Attr) error { a.Inode = 2 a.Mode = 0444 t := f.content.Load().(string) a.Size = uint64(len(t)) return nil }
func (d *Dir) Attr(ctx context.Context, a *fuse.Attr) error { if d.item == nil { // root directory a.Mode = os.ModeDir | 0755 return nil } //zipAttr(d.file, a) return nil }
func (self *File) Attr(ctx context.Context, a *fuse.Attr) error { a.Mode = 0755 a.Size = self.item.Size t := time.Now() a.Crtime = t a.Ctime = t a.Mtime = t return nil }
func (benchFile) Attr(ctx context.Context, a *fuse.Attr) error { a.Inode = 2 a.Mode = 0644 a.Size = 9999999999999999 return nil }
func (benchDir) Attr(ctx context.Context, a *fuse.Attr) error { a.Inode = 1 a.Mode = os.ModeDir | 0555 return nil }
func (t *tree) Attr(ctx context.Context, a *fuse.Attr) error { a.Mode = os.ModeDir | 0555 return nil }
func (File) Attr(ctx context.Context, a *fuse.Attr) error { a.Inode = 2 a.Mode = 0444 a.Size = uint64(len(greeting)) return nil }
func (f *ChildMap) Attr(ctx context.Context, a *fuse.Attr) error { a.Mode = os.ModeDir | 0777 return nil }
func (f File) Attr(ctx context.Context, a *fuse.Attr) error { a.Mode = 0666 return nil }