perf: use walkdir

This commit is contained in:
Antoine Aflalo
2024-08-26 23:45:30 -04:00
parent 590dd646e7
commit c8b78985d4

View File

@@ -108,7 +108,7 @@ func ConvertCbzCommand(cmd *cobra.Command, args []string) error {
}
// Walk the path and send files to the channel
err = filepath.Walk(path, func(path string, info os.FileInfo, err error) error {
err = filepath.WalkDir(path, func(path string, info os.DirEntry, err error) error {
if err != nil {
return err
}