What is the problem you are having with rclone?
I'm writing a script that has a search function. The ls command return results perfectly with filters, but lsjson does not. And I need to use it for the script as it includes metadata i can easily parse.
Isjson seems to completely ignore filters and instead lists all folders at the root of the folder path. The same arguments/filters when used with ls returns what I want.
Run the command 'rclone version' and share the full output of the command.
rclone v1.64.2
- os/version: Microsoft Windows 11 Pro 23H2 (64 bit)
- os/kernel: 10.0.22631.2715 (x86_64)
- os/type: windows
- os/arch: amd64
- go/version: go1.21.3
- go/linking: static
- go/tags: cmount
Which cloud storage system are you using? (eg Google Drive)
Local/network storage.
The command you were trying to run (eg rclone copy /tmp remote:tmp)
This returns all folders at the root of nas:music/library. Not what I want.
rclone lsjson nas:music/library --filter "+ **foldername/**" --filter "- /**" --ignore-case
This returns everything in nas:music/library/foldername. What I want, but with lsjson
rclone ls nas:music/library --filter "+ **foldername/**" --filter "- /**" --ignore-case
Filters with lsjson seems to only be effective at the root of the folder path.
What am I doing wrong? Or is this not possible?
Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.
[XXX]
type = combine
upstreams = XXX
A log from the command that you were trying to run with the -vv flag
This would list every file on my network. ![]()