func (p *FileGlobber) Run() {
	defer p.CloseAllOutPorts()
	for _, globPtn := range p.globPatterns {
		scipipe.Audit.Printf("%s: Globbing for files, with pattern: %s", p.Name(), globPtn)
		matches, err := filepath.Glob(globPtn)
		scipipe.CheckWithMsg(err, "FileGlobber: This glob pattern doesn't look right: "+globPtn)
		for _, filePath := range matches {
			scipipe.Audit.Printf("%s: Sending concrete file %s", p.Name(), filePath)
			p.Out().Send(scipipe.NewFileIP(filePath))
		}
	}
}
// Run runs the FileGlobber process
Run runs the FileGlobber process
// Run runs the FileGlobber process
func (p *FileGlobber) Run() {
	defer p.CloseAllOutPorts()
	for _, globPtn := range p.globPatterns {
		scipipe.Audit.Printf("%s: Globbing for files, with pattern: %s", p.Name(), globPtn)
		matches, err := filepath.Glob(globPtn)
		scipipe.CheckWithMsg(err, "FileGlobber: This glob pattern doesn't look right: "+globPtn)
		for _, filePath := range matches {
			scipipe.Audit.Printf("%s: Sending concrete file %s", p.Name(), filePath)
			p.Out().Send(scipipe.NewFileIP(filePath))
		}
	}
}
func ( p * FileGlobber ) Run ( ) { defer p . CloseAllOutPorts ( ) for _ , globPtn := range p . globPatterns { scipipe . Audit . Printf ( " " , p . Name ( ) , globPtn ) matches , err := filepath . Glob ( globPtn ) scipipe . CheckWithMsg ( err , " " + globPtn ) for _ , filePath := range matches { scipipe . Audit . Printf ( " " , p . Name ( ) , filePath ) p . Out ( ) . Send ( scipipe . NewFileIP ( filePath ) ) } } }
Run runs the FileGlobber process
Run runs the FileGlobber process