File Path Restrictions

File Path Restrictions

Office 365 SharePoint and OneDrive for Business

Office 365 SharePoint and OneDrive for Business allow maximum pathname for files and folders to be 400 characters.

The total length of a SharePoint URL equals the length of the folder or file path, including the protocol and server name and the folder or file name, plus any parameters that are included as part of the URL. The formula is as follows:

URL = protocol + server name + folder or file path + folder or file name

For example, the following is a typical URL path to a file stored in SharePoint:
http://www.contoso.com/sites/marketing/documents/Shared%20Documents/Promotion/Some%20File.xlsx


Note that spaces are represented by 3 characters - %20


Windows OS

Windows OS allow maximum pathname for files and folders to be 260 characters.

​​​​​​​C:\Folder1\Really Long Path\Such Recursion\So Deep\Wow\Still Going\I will run out of ideas soon\I have organizational problems\Obsessive compulsive subdirectory disorder\Here is a guid for no good reason\936DA01F-9ABD-4d9d-80C7-02AF85C822A8\Almost there\Tax Returns\2013\2013_tax_return.pdf

This full file path is 290 characters long. The shell (Windows Explorer) and most command line utilities probably won't let you touch it.


Use the subst command like so:

subst X: "C:\Folder1\Really Long Path\Such Recursion\So Deep\Wow"

Now you can access (and delete, move, etc.) the file thusly:

X:\Still Going\I will run out of ideas soon\I have organizational problems\Obsessive compulsive subdirectory disorder\Here is a guid for no good reason\936DA01F-9ABD-4d9d-80C7-02AF85C822A8\Almost there\Tax Returns\2013\2013_tax_return.pdf


    • Related Articles

    • Veeam Restore

      File Level Restore select Restore - in Veeam console select Guest Files (Microsoft Windows) select Finish select Virtual Machine (daily, Hourly) select Availble restore point select Finish - Veeam Backup Browser will generate a restore session select ...