I'm trying to use fs.writeFile
with options { flag: 'w+' }
. When I trying to create a file named 'css' without a file extension, it gives me an error,
Error: EISDIR: illegal operation on a directory, open -path-
But, I need to create this 'css' file in disc.
I tried this in Windows 10 x64, got this error, also in Ubuntu 18.04 too.
What should I do?