Rclone lsf and regex

root@server:~# ll /local/folder_test/
20/
2022/
2023/
22/
root@server:~# rclone lsf /local --include="folder_test/[0-9][0-9][0-9][0-9]/*" --recursive --dirs-only --config /etc/animati/union/rclone.conf
folder_test/
folder_test/2022/
folder_test/2023/

in docs is a bit confused on how to use regex. I don't know if I'm using the correct form. I would like to show on the screen only the folders with names from 1 to 9999.

tried to use folder_test/[0-9]{4}/* but didn't work.
another question would be not showing the root folder, only the numbered folders...

any ideia?

Perhaps you are looking for something like this:

rclone lsf /local/folder_test --include="[0-9][0-9][0-9][0-9]/*" ...

it still doesn't show dirs 20 and 22. It should show all folders from 1 to 9999 and not 1000 to 9999 only.

What about:

rclone lsf /local/folder_test --include="{{\d{1,4}}}/"
2 Likes

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