Forum Discussion
MacOS Monterey - Disable Files on Demand
- Jan 03, 2022That sounds strange. I would expect it to be one or the other as you say. On my own Mac running Monterey I cannot duplicate your issue. As you say, you can't disable FOD from the OneDrive client settings but you should be able to do this with a PList as per https://docs.microsoft.com/en-us/onedrive/deploy-and-configure-on-macos#filesondemandenabled
I am also affected by this and, as such decided to investigate what was happening. I don't think you will like what I'm about to tell you…
Apparently, Microsoft is now making use of a new framework by Apple, which works almost exactly like iCloud Drive, except instead of storing your stuff in /Users/[your account]/Library/Mobile Documents, it stores it in /Users/[your account]/Library/CloudStorage.
But not really, that's just where the “file system” is stored, and it works more like a bunch of hard/symlinks than anything else; the actual files (those which you decided to store locally, that is, but mine were fortunately still there, though I was afraid they might be gone, because in their “proper” location they all seemed to be available only on the cloud!) are still stored locally in the folder of your choice, except instead of getting a true folder, you get an alias, and the actual folder is now hidden and called “.ODContainer-OneDrive” (or “.ODContainer-OneDrive-[the name of your content provider” in case you have more than one account connected at the same time; in my case, that would be my University's SharePoint account).
Here's the thing: this is a total mess, because you never get direct access even to those files set to be always available, i.e. you can't perform QuickLook actions on them. And, I'm guessing, they weren't being properly indexed by Spotlight, as you pointed out. For advanced users, this is completely unacceptable. Yes, some people will enjoy using OneDrive as a convenient cloud-based “locker”, but many others really do need a multi-device, always available offline sync and backup solution, which allows their file structure to behave as a first-class citizen at all times.
So, for me, even if I did enjoy separating my files across different volumes, some in a OneDrive account and others in a Google Drive drive one, I just can't work with this anymore. To add insult to injury, even though those never synced across devices in the first place, all my custom icons and tags stopped displaying properly with this update (though, funnily and happily enough – as you will see in just a bit –, they were preserved in the .ODContainer-OneDrive folders), and my direct aliases (on the Dock and elsewhere) to folders inside of OneDrive stopped working altogether. Surely they could've come up with a migration tool which kept these aliases working, am I right? To launch such a destructive update is just amateurish, IMHO.
But really, that's not even the worst part. That Microsoft thought changing the entire working model of their OneDrive solution without prior notice was just fine and dandy, instead of doing it properly (if not that elegantly, of course) like Google did, with their successive Google Drive –> Google Backup and Sync –> Google Drive transitions and lots of advance warnings about support cut-off dates, is downright insulting. Yes, in the long run, I could accept the added opacity in the Finder, sure, but doing it like this makes it extra unacceptable, as it effectively constitutes a breach of confidence on a tool supposedly geared towards productivity. Well, these shenanigans really messed up with my productivity, and will keep having repercussions in the coming days (I don't even know if I have enough free space on my laptop to emulate the file structure I have on this Mac, for instance, and will likely be forced to anticipate by several months – and at a terrible time both financially and logistically, no less – an SSD upgrade I was mulling over), so… yeah, not very Microsoft-y of you, Microsoft.
So… do you want to know how I fixed this? Easy:
1. I quit all instances of OneDrive;
2. With the Finder active, I pressed Command+Shift+. (that is a period, yes), to make hidden files and folders temporarily visible;
3. I renamed said “.ODContainer-OneDrive” folders and removed the dot, thus making them visible;
4. I dragged the entire contents of my OneDrive folders (both of them; it's basically dead to me, and I'll only use it if someone specifically asks me to share folders through either of my accounts) into… my Google Drive folder.
5. ????
6. PROFIT!!! (because my Uni fees/scholarship cover both Office365 and GSuite subscriptions, and while the former only gives us 1 TB of free cloud storage, the latter is unlimited).
To the guys at Microsoft: sorry! It was good while it lasted, and I very much enjoyed auto-saving and one-click access to versioning when working in Word documents… But I'm more of an iWork and LibreOffice guy these days, and I always keep Time Machine backups anyway. I don't need your wares that much anymore, and your service is most definitely not dependable. Also, I will not be missing its ridiculous character set limitations (as a matter of fact, I shall be renaming a few of my files with lots of hash and pipe signs, and spaces at the end, as a way of celebration).