示例#1
0
文件: glweb.go 项目: nzlov/glweb
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()
	}
}
示例#2
0
文件: glweb.go 项目: nzlov/glweb
func (self *GLWeb) FileCreate(file *filemonitor.FileEntry) {
	log.Infoln("FileCreate", file)

	self.loadgl(file.Path())
}