4 ms·
One time I installed a buggy version of Arduino and it installed recursively, creating file paths far larger than 260 char. I was unable to delete the files usi
by LargeTomato 3y ago
One time I installed a buggy version of Arduino and it installed recursively, creating file paths far larger than 260 char. I was unable to delete the files using explorer, cmd line, or power shell. I had to use cygwin. That was the most disappointed I've ever been with Windows.
- kmeisthax 3y agoHalf a decade ago anything that needed Node packages - even just a Gulp build system - would wind up constructing extremely deep directory trees that Explorer would choke on. So you would npm install the project, realize you needed a different version of something, try to delete node_modules, and fail horribly with a bunch of long path errors.
- jeroenhd 3y agoYou can remove these files using the command line by using the \\?\ syntax to bypass all normalisation and compatibility tricks Windows employs. Definitely works in CMD, never checked in Powershell (but I assume it works). I've had a similar issue with a recursive folder and transferring it to another host in Linux. A megabyte on my machine filled up the server pretty quick.
- MatmaRex 3y agoThe built-in "robocopy" tool (normally used for making backups / mirrors) is capable of deleting any messed up directories like that, by mirroring an empty directory over it.