mirror of
https://github.com/Belphemur/CBZOptimizer.git
synced 2025-10-14 12:38:50 +02:00
perf: use walkdir
This commit is contained in:
@@ -108,7 +108,7 @@ func ConvertCbzCommand(cmd *cobra.Command, args []string) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Walk the path and send files to the channel
|
// 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 {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user