It can be useful to know the number of files and folders in a directory when troubleshooting sync issues or when preparing to migrate a Department folder from OneDrive to SharePoint or to troubleshoot sync issues.
Instructions
- Scroll down and select Return to Classic OneDrive from the navigation pane on the left
- In the upper-right, click on the gear/settings icon
- Click on Site Contents in the pane that appears on the right
- After clicking Site Contents, the number of items is to the right of the directory
INFO: To see more about the directory, click on the vertical ellipse and click Settings. It will have a warning if it exceeds recommended number of items for list view and provide a link to info on handling large libraries.
From synced directory on MacOS client
- Open Terminal and change to the desired directory
- Run the following command:
find OneDrive\ -\ University\ of\ Maine\ System -type f | wc -l
From synced directory on Windows client
- Open a PowerShell command prompt
- Change to the desired directory
- Run the following command
(dir -Recurse).count
Environment