diff options
Diffstat (limited to 'pim/cmd/icalfs')
| -rw-r--r-- | pim/cmd/icalfs/main.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/pim/cmd/icalfs/main.go b/pim/cmd/icalfs/main.go index c155252..774a9b1 100644 --- a/pim/cmd/icalfs/main.go +++ b/pim/cmd/icalfs/main.go @@ -52,6 +52,16 @@ func (b *backend) Name() string { // A published feed can only be read. See pim/doc/design.md. func (b *backend) Caps() string { return "read" } +// Me is whose calendar this is, from the config. It makes partstat +// readable -- you can see where you stand -- without making it +// writable, because nothing here can deliver a reply. +func (b *backend) Me() []string { + if b.c == nil { + return nil + } + return b.c.Me +} + // Refresh is how often to re-stat the directory. Whoever writes the // files should poke ctl instead; this only catches a hand edit. func (b *backend) Refresh() time.Duration { return b.poll } |
