Setting up exclusions for a specific path

I want to exclude the Shared With Me folder in OneDrive as it is redundant to the other onedrive folder I have in odrive. I tried the following, but it doesn’t seem to work. What am I doing wrong? Thank you in advance.

“blackListNames”: [
“OneDrive/Shared With Me”,
“ehthumbs.db”,
“thumbs.db”,
“desktop.ini”
],

Hi @avministry,
The exclusions are not path-based, so you can only specify the name. If you change your exclusion to just “Shared With Me” that should work.

No, that’s too generic. It needs to be specific to the OneDrive directory as the Google Drive directory wants to expand the Shared With Me folder.

So I tried moving it to the blackListContains list and it appears that if you select the parent folder and do a recursive sync it doesn’t apply the blacklisting on each folder/file as it expands each level. That’s not cool, I wrote a simple bash script that did that correctly. I hope I’m wrong.

Hi @avministry,
My apologies. That is currently how it is implemented. It is not a path-based filter, but an object name based filter.

“So I tried moving it to the blackListContains list and it appears that if you select the parent folder and do a recursive sync it doesn’t apply the blacklisting on each folder/file as it expands each level.”

Can you clarify what is is you added to the blackListContains, what your expectation was with that change, and how the behavior observed differed from that?

So I changed the blackListContains to be:

“blackListContains”: [
“OneDrive/Shared With Me”
],

which from the description in the manual any file that contains that string in the name should be blacklisted. When I look at the log, however, I could see multiple files with that string within the name being processed. I also noticed when I went to unsync the folder afterwards, that I got messages the blacklist files were being removed. Here’s some of the output:

02 Apr 09:21:04AM INFO User notified that they have selected a top-level folder for sync: /Volumes/Cloud/odrive/OneDrive/Shared With Me.cloudf
02 Apr 09:21:16AM INFO Performing right-click->sync action on /Volumes/Cloud/odrive/OneDrive/Shared With Me.cloudf. Threshold 0. Recursive: True. Rule: True. Force Refresh False.
02 Apr 09:21:17AM INFO Successful Expand Folder for Item: /Volumes/Cloud/odrive/OneDrive/Shared With Me.cloudf - Size: NA - Date: NA
02 Apr 09:21:19AM INFO Successful Expand Folder for Item: /Volumes/Cloud/odrive/OneDrive/Shared With Me/Service Recordings Archive.cloudf - Size: NA - Date: NA
02 Apr 09:21:21AM INFO Successful Expand Folder for Item: /Volumes/Cloud/odrive/OneDrive/Shared With Me/Service Recordings Archive/2015.cloudf - Size: NA - Date: NA
02 Apr 09:21:23AM INFO Successful Expand Folder for Item: /Volumes/Cloud/odrive/OneDrive/Shared With Me/Service Recordings Archive/2016.cloudf - Size: NA - Date: NA
02 Apr 09:21:25AM INFO Successful Expand Folder for Item: /Volumes/Cloud/odrive/OneDrive/Shared With Me/Service Recordings Archive/2017.cloudf - Size: NA - Date: NA
02 Apr 09:21:27AM INFO Successful Expand Folder for Item: /Volumes/Cloud/odrive/OneDrive/Shared With Me/Service Recordings Archive/2017/2017-04-08.cloudf - Size: NA - Date: NA
02 Apr 09:21:30AM INFO Successful Expand Folder for Item: /Volumes/Cloud/odrive/OneDrive/Shared With Me/Service Recordings Archive/2017/2017-06-03.cloudf - Size: NA - Date: NA
02 Apr 09:21:31AM INFO Successful Expand Folder for Item: /Volumes/Cloud/odrive/OneDrive/Shared With Me/Service Recordings Archive/2018.cloudf - Size: NA - Date: NA
02 Apr 09:21:32AM INFO Successful Expand Folder for Item: /Volumes/Cloud/odrive/OneDrive/Shared With Me/Service Recordings Archive/2019.cloudf - Size: NA - Date: NA
02 Apr 09:21:34AM INFO Successful Expand Folder for Item: /Volumes/Cloud/odrive/OneDrive/Shared With Me/Service Recordings Archive/2020.cloudf - Size: NA - Date: NA
02 Apr 09:21:37AM INFO Successful Expand Folder for Item: /Volumes/Cloud/odrive/OneDrive/Shared With Me/Service Recordings Archive/2021.cloudf - Size: NA - Date: NA
02 Apr 09:21:41AM INFO Right-click->sync action on /Volumes/Cloud/odrive/OneDrive/Shared With Me.cloudf completed. Some refresh jobs may still be active/queued.
02 Apr 09:21:47AM INFO User has chosen to unsync /Volumes/Cloud/odrive/OneDrive/Shared With Me via user action.
02 Apr 09:21:47AM INFO (Unsync) Ignoring blacklisted item /Volumes/Cloud/odrive/OneDrive/Shared With Me/Service Recordings Archive/.DS_Store
02 Apr 09:21:47AM INFO (Unsync) Ignoring blacklisted item /Volumes/Cloud/odrive/OneDrive/Shared With Me/Service Recordings Archive/2017/.DS_Store
02 Apr 09:21:47AM INFO (Unsync) Ignoring blacklisted item /Volumes/Cloud/odrive/OneDrive/Shared With Me/.DS_Store
02 Apr 09:21:48AM INFO /Volumes/Cloud/odrive/OneDrive/Shared With Me Moved to the OS trash due to unsynced blacklisted items in the folder.
02 Apr 09:21:48AM INFO /Volumes/Cloud/odrive/OneDrive/Shared With Me successfully unsynced via user action.

Why were any of the folders under OneDrive/Shared With Me being expanded?
Or do I just not understand how to blacklist correctly?
I need to be able to blacklist folders because don’t have the disk space for them.
I figured the easiest way was to use the blackList features provided as part of the premium package.
I can’t believe I’m the only person that has had problems with this feature.
Can’t I blackList the corresponding .cloudf file?

Thank you.

Hi @avministry,
“OneDrive/Shared With Me” is a path (parent directory “OneDrive” and object name “Shared With Me”), which isn’t supported currently. That is why you are seeing that behavior.

Why not just unsyncing the folder and leaving it as a placeholder?

I want to be able to have someone go to the OneDrive directory and do a recursive sync without having to worry about the “Shared With Me” folder that is in there. I am not the only person that might expand folders on this odrive. Isn’t there a way to explicity exclude particular folders?

Hi @avministry,
There isn’t currently a way to exclude a specific path.

You could try making the OneDrive Shared With Me.cloudf placeholder immutable, so that it can’t be synced.

In Terminal:
To make immutable:
chflags uchg "/Volumes/Cloud/odrive/OneDrive/Shared With Me.cloudf"

To remove the flag:
chflags nouchg "/Volumes/Cloud/odrive/OneDrive/Shared With Me.cloudf"