~sircmpwn/aerc

ref: dc4c36adbfbffd34319ddc007bad437ef802ee72 aerc/lib/dirstore.go -rw-r--r-- 284 bytes
dc4c36adJeffas Add new-email trigger 1 year, 7 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package lib

type DirStore struct {
	dirs []string
}

func NewDirStore() *DirStore {
	return &DirStore{}
}

func (store *DirStore) Update(dirs []string) {
	store.dirs = make([]string, len(dirs))
	copy(store.dirs, dirs)
}

func (store *DirStore) List() []string {
	return store.dirs
}