Forum Discussion

PabloLlopis's avatar
PabloLlopis
Copper Contributor
Dec 01, 2026

File Explorer limited to 260 characters with LongPathsEnabled: blocking SharePoint/OneDrive users

We are a professional services firm in Spain. Our document base is SharePoint Online and users work daily from File Explorer through OneDrive shortcuts.

 

We enabled LongPathsEnabled / "Enable Win32 long paths", but File Explorer still enforces 260 characters in several operations, as Microsoft's own documentation confirms. Files that are valid in SharePoint Online (under 400 chars) and in OneDrive sync (under 520 chars) can't be opened, moved or renamed from Explorer.

 

Impact: we had to rename 3,671 folders over one weekend, and ~18,000 synced paths are still at risk. Microsoft Support (TrackingID#2611301410000309) confirmed there is no setting to lift these limits and suggested raising it through feedback channels.

 

Request: make File Explorer, and the Office desktop apps opening synced files, honour long paths end-to-end when the long-path policy is enabled.

 

Related feedback, please upvote:

https://feedbackportal.microsoft.com/feedback/idea/9b3b34fb-6f8e-f011-aa44-7c1e52e168a6

https://feedbackportal.microsoft.com/feedback/idea/66f8f931-62aa-f011-aa44-7c1e52e168a6

https://feedbackportal.microsoft.com/feedback/idea/56bcf865-ca6a-f111-9b47-6045bdbd0989

 

Is anyone else hitting this? Any supported workaround besides mass-renaming?

1 Reply

  • That is a painful weekend, and it is worth upvoting the feedback item. While the limit stays, a few things reduce how many paths are actually at risk, because the local path is longer than the SharePoint path.

     

    Step 1, remember the prefix counts. Explorer sees the full local path, which includes C:\Users\name\ plus the synced library folder name, for example C:\Users\jsmith\Company Name\Site - Library\ before your first folder. That prefix is often 60 to 90 characters. A shorter profile name and a short library display name give you that headroom back on every file.

     

    Step 2, shorten the prefix with a drive letter. For people who work deep in one folder, a subst drive points at it: subst X: "C:\Users\jsmith\Company Name\Site - Library\Clients\ClientA". Work from X:\ and Explorer sees a short path. It is per session unless you add it to a logon script.

     

    Step 3, measure real exposure per user, not just in SharePoint. In PowerShell: Get-ChildItem -LiteralPath "\\?\C:\Users\jsmith\Company Name" -Recurse -File -ErrorAction SilentlyContinue | Where-Object { $_.FullName.Length -gt 240 } | Select-Object -ExpandProperty FullName. The \\?\ prefix lets PowerShell read paths that Explorer cannot. Use 240 as a threshold so you catch files near the limit.

     

    Step 4, move the limit risk upstream. Set a naming and depth rule for new folders (for example, maximum 4 levels, short client codes) and run a scheduled check on the library so new deep paths are caught early.

     

    Disclosure: I work on TFalke, a Windows only tool, and someone checking exposure across PCs could use it to run a read-only command like the one in step 3 on a few connected machines and compare the counts, instead of waiting for a user to hit the limit. It is free for the first 10 devices. A scheduled script in your management tool does the same job for the whole fleet.

     

    How many levels deep do your typical client folders go?