Esempio n. 1
0
func NewFileMonitorObserverByFileEntryAndFileFileter(rootEntry *FileEntry, fileter *FileFilter) *FileMonitorObserver {
	observer := &FileMonitorObserver{
		fileListeners: array.NewArray(),
		fileMap:       make(map[string]*FileEntry),
		tempfileMap:   array.NewArray(),
		one:           true,
		rootEntry:     rootEntry,
		fileFileter:   fileter}
	return observer
}
Esempio n. 2
0
func NewFileFilter() *FileFilter {
	return &FileFilter{array.NewArray()}
}