diff --git a/cmd/du-main.go b/cmd/du-main.go index 02b110ce..9281521e 100644 --- a/cmd/du-main.go +++ b/cmd/du-main.go @@ -24,7 +24,7 @@ import ( "strings" "time" - humanize "github.com/dustin/go-humanize" + "github.com/dustin/go-humanize" "github.com/fatih/color" "github.com/minio/cli" json "github.com/minio/colorjson" @@ -151,7 +151,7 @@ func du(ctx context.Context, urlStr string, timeRef time.Time, withVersions bool continue } - if content.Type.IsDir() { + if content.Type.IsDir() && !recursive { depth := depth if depth > 0 { depth--