0

Some time ago, some script (probably Gradle's) created an overly deep folder. I tried answers in this question: How do I delete a folder which is nested quite deep and avoid "File name too long"?, but in first case robocopy just seems to be looping: robocopy job

Using second answer - renaming folders to single letters - system prohibits that after I go deeper, again with a "Destination path too long" message. Need help!

Alexiy
  • 267

2 Answers2

0

You might be able to use the UNC naming convention to get around this. We have to do this sometimes at work (when people have files such as C:\Users\Username\Desktop\2016\January\Fifteenth\Personal\Vacation\pictures from the vacation we took in march\beach\on the beach\camera photos\from my iphone\picture.jpg). We have to create a share of the Desktop folder, and use \LOCALHOST\Desktop\ and remove the folder "2016".

This issue is caused by the maximum path in an NTFS volume. This is defined as 260 characters, with some exceptions.

For further reading, take a look at this MSDN Article

Burgi
  • 6,768
Rikai
  • 54
0

Total Commander (official site: http://www.ghisler.com/) can work with paths longer than 255 chars. You should be able to easily delete them by using it to perform the task.

JollyMort
  • 387