Implemented function scanning
All checks were successful
/ test (push) Successful in 16s

This commit is contained in:
Eduard Urbach 2025-06-19 23:31:52 +02:00
parent 9b51680af5
commit c2b8db238e
Signed by: ed
GPG key ID: 49226B848C78F6C8
24 changed files with 624 additions and 232 deletions

21
src/scanner/queue.go Normal file
View file

@ -0,0 +1,21 @@
package scanner
import "os"
// queue scans the list of files.
func (s *scanner) queue(files ...string) {
for _, file := range files {
stat, err := os.Stat(file)
if err != nil {
s.errors <- err
return
}
if stat.IsDir() {
s.queueDirectory(file, "main")
} else {
s.queueFile(file, "main")
}
}
}