List top-level files in a directory, without listing all the files?

This will list all files recursively:

$ rclone ls onedrive_crypt:last_snapshot/Documents

It’s a long list.
Is there a way to list just the top-level files in Documents, without listing all the files in Documents recursively?

Sure, use the --max-depth 1 flag.

Or if you want to see files and directories, then you can use lsf (you’ll need the latest beta for this).

1 Like