Added a main loop on a timed interval
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/tag/woodpecker Pipeline was successful

This commit is contained in:
2022-09-01 00:17:29 -04:00
parent 02dfc7c291
commit cf854a91f0
2 changed files with 20 additions and 8 deletions

View File

@ -30,6 +30,8 @@ func NewRepository(path string) *Repository {
func (r *Repository) SearchIngest() []os.FileInfo {
ingestPath := filepath.Join(r.basePath, "ingest")
log.Printf("Searching ingest directory for files to transcode...")
ingestDir, err := os.Open(ingestPath)
if err != nil {
log.Fatalf("Error opening ingest directory: %s", err)