Skip to content

Instantly share code, notes, and snippets.

@jpierson
Created October 11, 2018 13:14
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jpierson/fb2062b8496dc9b0221f60ee9710d2ef to your computer and use it in GitHub Desktop.
Save jpierson/fb2062b8496dc9b0221f60ee9710d2ef to your computer and use it in GitHub Desktop.
windows-long-path-support

Long path support for Windows 10

How to enable

Helpful resources:

Testing

I'm still trying to formulate a good test for ensuring the long path support option has been properly enabled but below is what I've come up so far and verified working on a machine that does have this option enabled.

mkdir "testdir/01234567890123456789/01234567890123456789/01234567890123456789/01234567890123456789/01234567890123456789/01234567890123456789/01234567890123456789/01234567890123456789/01234567890123456789/01234567890123456789/01234567890123456789/01234567890123456789/01234567890123456789/01234567890123456789/01234567890123456789/01234567890123456789/01234567890123456789/01234567890123456789/01234567890123456789/01234567890123456789/01234567890123456789/01234567890123456789/01234567890123456789/01234567890123456789/"

This is a path that is at least 519 characters in total length with segments each of which are mostly 10 character directory names. Using the double quote (") seems to be required for this to work from the Windows command shell.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment