3 ms·
> However some legacy Win32 APIs only support up to 260 characters for backwards compatibility and old file system reasons. Legacy or not, this affects all .NE
by josteink 10y ago
> However some legacy Win32 APIs only support up to 260 characters for backwards compatibility and old file system reasons.
Legacy or not, this affects all .NET applications and also to some extent NodeJS (with its crazy node_moules mess) and you have to apply all kinds of crazy workarounds for this not to come back and bite you.
The amount of builds I've seen broken over stuff like this is ridiculous.
If they can get this fixed proper, I'd love to offer the MS engineer who made this happen a beer or twelve.
- antjanus 10y agospeaking of this, how do you do delete those crazy node_modules in Win10 from the command line? Powershell or CMD
- avtar 10y agormdir should do the trick: https://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/rmdir.mspx?mfr=true https://www.microsoft.com/resources/documentation/windows/xp... Although installing MSYS2 http://msys2.github.io/ http://msys2.github.io/ provides a far superior command line environment IMO and then you can just use rm.
- qntmfred 10y agohttps://www.npmjs.com/package/rimraf https://www.npmjs.com/package/rimraf
- jongalloway2 10y agoLots of options here: http://superuser.com/questions/256105/how-do-i-delete-a-folder-which-is-nested-quite-deep-and-avoid-file-name-too-lon http://superuser.com/questions/256105/how-do-i-delete-a-fold... If you have 7-zip installed, you can open the parent directory in 7-zip file manager and delete it from there.
- josteink 10y agoOne approach (which I've used in our build definition where we ensure we have a clean workspace) is to rename all folders to "a" and recursively dig into them before deleting. So \a_quite\long\path\with_files\module.js becomes \a\a\a\a\module.js And you can usually delete that quite fine. It's terrible. It's ugly. But it works.