diff options
Diffstat (limited to 'lib/dirstore.go')
-rw-r--r-- | lib/dirstore.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/dirstore.go b/lib/dirstore.go index 76833622..bbf4e20b 100644 --- a/lib/dirstore.go +++ b/lib/dirstore.go @@ -36,3 +36,7 @@ func (store *DirStore) Remove(name string) { delete(store.dirs, name) delete(store.msgStores, name) } + +func (store *DirStore) Directory(name string) *models.Directory { + return store.dirs[name] +} |