Count the size and files number in each subfolder

What is the problem you are having with rclone?

I have a team disk, there are 10 subfolder below, I want to count the each subfolder's name、size、number of files, what command should I use to achieve it

What is your rclone version (output from rclone version)


Which OS you are using and how many bits (eg Windows 7, 64 bit)

debian 10 64

Which cloud storage system are you using? (eg Google Drive)

Google Drive

The command you were trying to run (eg rclone copy /tmp remote:tmp)

Paste command here

The rclone config contents with secrets removed.

Paste config here

A log from the command with the -vv flag

Paste  log here

Is it i must be to use the size command 10 times? That's so frustrating

Pseudo solution but may work for you:

rclone ncdu gdrive:path-to-your-main-folder/ --fast-list

In fact, I want to use rclone to count this information, and then use a script to pass this information to the telegram bot in the form of a table

You'll probably have to run rclone size on each individual folder. That has a --json output for scripting.