Why does the 260 character path length limit exist in Windows?

后端 未结 11 1188
孤城傲影
孤城傲影 2020-11-22 03:18

I have come up against this problem a few times at inopportune moments:

  • Trying to work on open source Java projects with deep paths
  • Storing deep Fitne
11条回答
  •  闹比i
    闹比i (楼主)
    2020-11-22 03:47

    One way to cope with the path limit is to shorten path entries with symbolic links.

    For example:

    1. create a C:\p directory to keep short links to long paths
    2. mklink /J C:\p\foo C:\Some\Crazy\Long\Path\foo
    3. add C:\p\foo to your path instead of the long path

提交回复
热议问题