Initial commit
This commit is contained in:
28
ffs/furrefile.go
Normal file
28
ffs/furrefile.go
Normal file
@@ -0,0 +1,28 @@
|
||||
package ffs
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"fusetest/furcadia"
|
||||
|
||||
"bazil.org/fuse"
|
||||
)
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// TYPE: DreamFile ////////////////////////////////////////////////////////////////////////////////
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
type FurreFile struct {
|
||||
Furre *furcadia.PounceFurre
|
||||
_attr fuse.Attr
|
||||
}
|
||||
|
||||
func (f *FurreFile) GetName() string {
|
||||
return f.Furre.DisplayName
|
||||
}
|
||||
|
||||
func (f *FurreFile) Attr(ctx context.Context, a *fuse.Attr) error {
|
||||
fmt.Printf("[D] FurreFile('%v').Attr()\n", f.GetName())
|
||||
*a = f._attr
|
||||
return nil
|
||||
}
|
||||
Reference in New Issue
Block a user