--filter doesn't work for folder in some sub folder that contain vendor folder

What is the problem you are having with rclone?

I have problem with --filter="- vendor/" seems doesn't exclude folder that has vendor in any folder, the question it, is this not supported? Or ** only works for file not folder?

Run the command 'rclone version' and share the full output of the command.

1.61

Which cloud storage system are you using? (eg Google Drive)

Sharepoint and GoogleDrive

The command you were trying to run (eg rclone copy /tmp remote:tmp)

rclone bisync path1:/somefolder /home/local/path -P --filter="- **vendor/**" --verbose

The rclone config contents with secrets removed.

None

A log from the command with the -vv flag

Files getting deleted... with vendor folder included

For notes I already see Filter a folder and all sub folders/files not working - #13 by notDavid and the docs, seems there ** is being used for files example only.

I also already read the path wildcard, sadly even with this config, seems not working and kept deleting the file, but strangely... if I use rclone ls /home/local/path --filter="- vendor/**", it won't list the files/folder... :confused:

Description Pattern Matches Does not match
Path Wildcard dir/** /dir/anyfile file.png
/subdir/dir/subsubdir/anyfile /subdir/file.png

I suspect this is a problem with bisync rather than sync or copy - would you agree?

I do, hmm... but isn't bisync and sync and ls and other is based on same code?

It's all part of rclone, but very different.

sync is one way
bisync is two way

I see, but as --filter will it be supported? I mean it's on rclone docs Bisync , so does that mean, this is a bug? If yes, can I open an issue for it?

Thank you

You can request filter to be added, but why not just use the filter-file that already exists?

Unless you plan to submit the PR for it, it'll probably sit for sometime as I think there isn't maintainer for bisync.