Hi, I would appreciate a way to test specific file against the rclone filter. I.E. I would like to execute a command similar to this:
rclone filtertest local_path --filter-from="filter1.txt" --fiter-from="filter2.txt"
and have an answer that would indicate whether the file would be processed or excluded by the filters if passed with these filters to a
I know there is
--dry-run, but it connects to the server and that takes time. I need to test many files in a short time.
I need this, because I am trying to make myself an instant-sync feature with rclone, where files are backed up a short while after they have been modified. I already have the file modification detection, but that doesn't know about rclone filters. I then contruct a filter that contains only the files that need to be synced. I would like to avoid calling rclone if all the files to sync would be excluded by rclone.
Now I would have to write a procedure that mimics the rclone filter, but that would be a very difficult task.