fs.rmdir deletes the directory only if it empty. So for that we have to delete the files recursively and then empty folders.
If you don't want to work with path module in node js try to replace os specific path seperator and check
Happy Coding :-)
fs.rmdir deletes the directory only if it empty. So for that we have to delete the files recursively and then empty folders.
If you don't want to work with path module in node js try to replace os specific path seperator and check
Happy Coding :-)
0 Comments
Please Login to Comment Here