MacOS – “The operation can’t be completed because you don’t have permission to access some of the items.” when moving OneDrive files

filesystemmacospermission

OneDrive has a feature called "Files On-Demand", I'm playing arround with it and trying to figure out how it works. It looks like OneDrive uses sparse files as placeholders before the really file is downloaded to local. I found that I can't move those sparse files out of the OneDrive folder when OneDrive is not running. The system asked me to enter password to allow this operation then it failed with message "The operation can’t be completed because you don’t have permission to access some of the items.".
enter image description here

I've changed file permissions to rwxrwxrwx and ACL permissions to Read & Write but still doesn't work.

enter image description here

I like to understand what is going underneath. Why those files can not being moved when OneDrive is not running. I appreciate your help!

Best Answer

I had the same problem. What worked for me was the open the source file, which probably triggered the on-demand download. Then I was able to move/copy it elsewhere.

You could probably also go to OneDrive Preferences and click "Turn Off Files On-Demand"