How to list files or directories starts with specific letter?

What is the problem you are having with rclone?

I wanted to list the directories start with the letter "P" only. Tried Include Matches character flags but I couldn't get it.

What is your rclone version (output from rclone version)

rclone v1.53.4

  • os/arch: windows/amd64
  • go version: go1.15.6

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


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)

rclone lsd "Remote" --matches character P

The rclone config contents with secrets removed.

Paste config here

A log from the command with the -vv flag

Paste  log here

Take a look at the filtering and there are a few examples:

Sorry, I couldn't get it there(at least I couldn't understand). Can you plz give a command to do this by taking any specific letter?

Something like:

felix@gemini:~/test$ rclone ls /home/felix/test
       37 Test/hosts
       37 P/blah
felix@gemini:~/test$ rclone ls /home/felix/test --include "P**"
       37 P/blah
1 Like

Thank you for the help :slight_smile:

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.