msys2/msys2.github.io

Strange NUL file in msys2/tmp/go-build(random numbers) folder that can't be removed

Closed this issue · 4 comments

iocmet commented

image
image
image
image

iocmet commented

Can be deleted from git bash or "del \\.\(path to folder with file)\NUL."
But what is this?

NUL is one of the reserved file names in Windows. More info can be found here https://learn.microsoft.com/en-us/windows/win32/fileio/naming-a-file. It is not allowed to do any file operation from Windows programs. But it is possible to some file operation with Windows APIs. Hence you can delete or create that NUL file in cygwin or msys2 or git-for-windows.

iocmet commented

I already understood, i thought CON is the only reserved name

So, the question is answered, I guess.