I'm trying to check if the path given exists. In case it doesn't, I'd like to create a folder with name given in the same directory.
Let's say pathOne: "/home/music/A" and pathTwo: "/home/music/B", such that folder A exists but folder B doesn't. Nothing happens if the path given by the user is pathOne, but if its pathTwo, then the program should realize that it doesn't exist in /home and should create it.
I know that it's possible to check the existence from files (with fopen it's possible do to that), but I don't know how to do that for folders!