-->
With OneDrive Files On-Demand, files can be in one of three states. Each of these states corresponds to a file attribute state.To query the current state of a file or folder, use the following command:
To sync OneDrive files with your Mac, you'll need to get the OneDrive app from the Mac App Store. If you've never had an individual account signed into OneDrive, follow these steps. If you already have an individual OneDrive account signed in, skip to the next section. To start OneDrive, press Command and the Spacebar to launch a. Here’s how to use Files On-Demand with the OneDrive app on macOS. Here is the problem: You can have up to 1 TB of online storage with OneDrive for your work or personal files and even if you don’t have the top of the range subscription, you could still have tens of gigabytes of online files. Some Apple MacBooks have as little as 128 GB drives.
Unpin Onedrive Quick Access
How To Uninstall Onedrive For Mac
- /Applications/OneDrive.App/Contents/MacOS/OneDrive /getpin <Path to file or folder>
Unpin Onedrive From Start
Scriptable commands
Use the following commands to set file and folder states.
Files On-Demand state | File attribute state | Command |
---|---|---|
Always available | Pinned | /Applications/OneDrive.App/Contents/MacOS/OneDrive /setpin <path> |
Locally available | Clearpin | /Applications/OneDrive.App/Contents/MacOS/OneDrive /clearpin <path> |
Online-only | Unpinned | /Applications/OneDrive.App/Contents/MacOS/OneDrive /unpin <path> |
Note
To set the file attribute state for all items within a folder, add the /r parameter.
Pinning an online-only file makes the sync app download the file contents, and unpinning a downloaded file frees up space on the device by not storing the file contents locally.
To set an online-only file or folder to 'locally available,' you must first set it to 'always available.'