Strange NUL file in msys2/tmp/go-build(random numbers) folder that can't be removed
Closed this issue · 4 comments
iocmet commented
iocmet commented
Can be deleted from git bash or "del \\.\(path to folder with file)\NUL."
But what is this?
Biswa96 commented
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
Biswa96 commented
So, the question is answered, I guess.