29 lines
677 B
Go
29 lines
677 B
Go
package ffs
|
|
|
|
import (
|
|
"context"
|
|
"fmt"
|
|
"fusetest/furcadia"
|
|
|
|
"bazil.org/fuse"
|
|
)
|
|
|
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
|
// TYPE: DreamFile ////////////////////////////////////////////////////////////////////////////////
|
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
type DreamFile struct {
|
|
Dream *furcadia.PounceDream
|
|
_attr fuse.Attr
|
|
}
|
|
|
|
func (f *DreamFile) GetName() string {
|
|
return f.Dream.ShortURL
|
|
}
|
|
|
|
func (f *DreamFile) Attr(ctx context.Context, a *fuse.Attr) error {
|
|
fmt.Printf("[D] DreamFile('%v').Attr()\n", f.GetName())
|
|
*a = f._attr
|
|
return nil
|
|
}
|