func handleReadDir(ctx context.Context, c *client.Client) error { fInfos, err := c.ReadDir(ctx, readDirName) if err != nil { log.Fatalf("ReadDir err (%v)", err) } for _, stats := range fInfos { fmt.Printf("%s: %d %t\n", stats.Name, stats.TotalSize, stats.IsDir == true) } return nil }