What is the problem you are having with rclone?
I am trying to filter files using regex. I have read this regexp section at Rclone Filtering
But I still cannot figure out, any guide would be appreciate, thanks!
Run the command 'rclone version' and share the full output of the command.
ā rclone version
rclone v1.65.0
- os/version: darwin 14.6.1 (64 bit)
- os/kernel: 23.6.0 (arm64)
- os/type: darwin
- os/arch: arm64 (ARMv8 compatible)
- go/version: go1.21.4
- go/linking: dynamic
- go/tags: none
Which cloud storage system are you using? (eg Google Drive)
N/A
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
I am trying to use --filter
to only include files
- starting with
T-
- ending with
.txt
I have files at /tmp/a/
folder:
T-T-aa.txt
T-a.txt
T-aa.txt
T.txt
a-T-aa.txt
So I hope to only return
T-T-aa.txt
T-a.txt
T-aa.txt
However, right now, it always returns all files
ā rclone ls /tmp/a/ --filter="+ {{^T-[^/]*\.txt}}"
0 T-T-aa.txt
0 T-a.txt
0 T-aa.txt
0 T.txt
0 a-T-aa.txt
Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.
N/A
A log from the command that you were trying to run with the -vv
flag
ā rclone ls /tmp/a/ --filter="+ {{^T-[^/]*\.txt}}" -vv
2024/09/16 13:25:18 INFO : Can't figure out directory filters from "{{^T-[^/]*\\.txt}}": looking in all directories
2024/09/16 13:25:18 DEBUG : rclone: Version "v1.65.0" starting with parameters ["rclone" "ls" "/tmp/a/" "--filter=+ {{^T-[^/]*\\.txt}}" "-vv"]
2024/09/16 13:25:18 DEBUG : Creating backend with remote "/tmp/a/"
2024/09/16 13:25:18 DEBUG : Using config file from "/Users/hongbo-miao/.config/rclone/rclone.conf"
2024/09/16 13:25:18 DEBUG : fs cache: renaming cache item "/tmp/a/" to be canonical "/tmp/a"
0 T-T-aa.txt
0 T-a.txt
0 T-aa.txt
0 T.txt
0 a-T-aa.txt
2024/09/16 13:25:18 DEBUG : 5 go routines active