MCPcopy Index your code
hub / github.com/perkeep/perkeep / Attr

Method Attr

pkg/fs/debug.go:104–112  ·  view source on GitHub ↗
(ctx context.Context, a *fuse.Attr)

Source from the content-addressed store, hash-verified

102}
103
104func (s *stat) Attr(ctx context.Context, a *fuse.Attr) error {
105 a.Mode = 0400
106 a.Uid = uint32(os.Getuid())
107 a.Gid = uint32(os.Getgid())
108 a.Size = uint64(len(s.content()))
109 a.Mtime = serverStart
110 a.Ctime = serverStart
111 return nil
112}
113
114func (s *stat) Open(ctx context.Context, req *fuse.OpenRequest, res *fuse.OpenResponse) (fs.Handle, error) {
115 // Set DirectIO to keep this file from being cached in OS X's kernel.

Callers

nothing calls this directly

Calls 1

contentMethod · 0.95

Tested by

no test coverage detected