Determine the number of files and folders in a OneDrive directory

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

From OneDrive online

  1.  Scroll down and select Return to Classic OneDrive from the navigation pane on the left
  2.  In the upper-right, click on the gear/settings icon
  3. 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

  1. Open Terminal and change to the desired directory
  2. Run the following command:

find OneDrive\ -\ University\ of\ Maine\ System -type f | wc -l

From synced directory on Windows client

  1. Open a PowerShell command prompt
  2. Change to the desired directory
  3. Run the following command

(dir -Recurse).count

Environment

  • Windows 10, macOS

 

Details

Article ID: 134556
Created
Fri 7/16/21 1:52 PM
Modified
Wed 5/25/22 11:33 AM
Applies To
Faculty
Staff