Exemple #1
0
func (self *GLWeb) FileDelete(file *filemonitor.FileEntry) {
	log.Infoln("FileDelete", file)

	if gls, ok := self.gls[file.Path()]; ok {
		for _, t := range gls.tasks {
			delete(self.glsroute, t.Name)
		}
		delete(self.gls, file.Path())
		delete(self.glps, gls.name)
		gls.close()
	}
}
Exemple #2
0
func (self *GLWeb) FileCreate(file *filemonitor.FileEntry) {
	log.Infoln("FileCreate", file)

	self.loadgl(file.Path())
}