Skip to content

Commit

Permalink
fix: return errors on fs tree
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanbagabas committed May 5, 2022
1 parent 07977d8 commit 2ad127a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/fs.go
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,9 @@ func fsTree(cmd *cobra.Command, args []string) error {
return err
}
err = fs.WalkDir(lsfs, args[0], func(path string, d fs.DirEntry, err error) error {
if err != nil {
return err
}
fmt.Println(path)
return nil
})
Expand Down

0 comments on commit 2ad127a

Please sign in to comment.