I'm writing some code in Linux. In my code, I need to check if a subdirectory, say "subdir1", currently exists inside the current directory or not. If not, my code needs to create the subdir. Otherwise, don't do anything.
I don't know how to write the code to check if the subdir exists. If you know, please give some help.