Add a way to exclude file/folder names from being accepted into a mounted remote?

Greetings! I want to suggest a feature to exclude certain file or folder names rom being accepted in a remtoe that is mounted as a drive. For example, if I don't want folders that end in *.tmp from being created in the mount, there should be a flag for it kinda like --exclude or --exclude-from.

you can do that today with the filtering on the mount.

1 Like

Oh that's awesome! I didn't see the mount command mentioned once in the filtering docs so I thought it wasn't implemented yet

xxx@dell-rob:~$ mkdir test
xxx@dell-rob:~$ cd test
xxx@dell-rob:~/test$ touch a.apk
xxx@dell-rob:~/test$ touch b.apk
xxx@dell-rob:~/test$ mkdir dir
xxx@dell-rob:~/test$ touch dir/test.txt
xxx@dell-rob:~/test$ cd ..
xxx@dell-rob:~$ mkdir test1
xxx@dell-rob:~$ rclone mount test test1 -vv --exclude=**apk&
[1] 30378

xxx@dell-rob:~$ cd test1
xxx@dell-rob:~/test1$ ls -al
drwxrwxr-x 1 xxx xxx 0 May 26 14:55 dir

xxx@dell-rob:~/test1$  ls -l ../test
total 4
-rw-rw-r-- 1 xxx xxx    0 May 26 14:55 a.apk
-rw-rw-r-- 1 xxx xxx    0 May 26 14:55 b.apk
drwxrwxr-x 2 xxx xxx 4096 May 26 14:55 dir

So I tried mounting Google Drive on Windows with these in an excludes.txt file loaded via --exclude-from=

System Volume Information/

This seems to work in sync but in mount these folders still end up getting created by the system and showing up on the Google Drive web interface. I wanted to have rclone reject these folders or discard them when they're written to the mounted drive

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