Forum Discussion
Why are we still hit by MAXPATH limitations in OneDrive in 2019??
https://www.aurelp.com/tag/maximum-file-name-google-drive/
What I suggest is having your users sync at a lower folder level to the files they need.
If you go into like five folders or so down the chain which I assuming is the case here you can click sync at that folder and it will sync starting at that folder essentially shortening the paths.
- rob_nicholson_heliosNov 28, 2019Brass Contributor
>The 250 limit is a Windows OS restriction.
It's a limitation in some of the ancient functions in the old Win32 API. Alternatives not limited by MAXPATH have been available for a long time so the question of why are we still effected by them is valid.
Microsoft controls Windows, File Explorer (just an app really) and OneDrive so am at loss why it can't be resolved. It's not an NTFS nor a Word issue as both can obviously handle long paths.
I might need to be restrained if I ever come across the programmer who first typed #define MAX_PATH 260 ๐ And yes, I know the reasons it existed 30 years ago.
File Explorer can obviously handle long paths as it can navigate down through very deep structures. Just can't pass the path to applications correctly. I assume it's the application launch mechanism that has the restriction. So why hasn't a new alternative launch application mechanism been implemented? Even if 3rd party app developers have to make changes, I'm assuming the changes wouldn't be too drastic.
- Nov 28, 2019Totally agree with you ;). You would think there has to be a reason itโs still that way thou and itโs not an easy fix but I man I guess weโll never really know ๐
- rob_nicholson_heliosDec 02, 2019Brass Contributor
It's very annoying as I'm having to defend my recommendation my client switches from DropBox Business to OneDrive. Okay, so Dropbox (et al) when working with File Explorer all have the same problem but OneDrive amplifies the problem with using a very long HTTP header.
Dropbox: C:\Users\123456790123\DropboxOneDrive: https://tenantnamehere-my.sharepoint.com/personal/onedrive_tenantnamehere_onmicrosoft_com/Documents
So 30 character pre-amble for Dropbox (12% of MAXPATH) but OneDrive 99 character pre-amble (40% of MAXPATH).
I tried to be clever and used a junction to reduce the path length and whilst it opens, it opens read-only and without autosave ๐