Skip to content

Commit

Permalink
clean up example
Browse files Browse the repository at this point in the history
  • Loading branch information
fogfish committed May 12, 2024
1 parent 542d98a commit d44ccea
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions examples/s3fs-walk/s3fs.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,11 @@ func walk() error {
return err
}

return fs.WalkDir(s3fs, "/the/", func(path string, d fs.DirEntry, err error) error {
return fs.WalkDir(s3fs, "/", func(path string, d fs.DirEntry, err error) error {
if err != nil {
return err
}

fmt.Printf("--> %v | %v\n", path, d.Name())

if d.IsDir() {
os.Stdout.WriteString(fmt.Sprintf("==> %s\n", path))
return nil
Expand Down

0 comments on commit d44ccea

Please sign in to comment.