In Qt, how do I check if a given folder exists in the current directory? If it doesn\'t exist, how do I then create an empty folder?
When you use QDir.mkpath() it returns true if the path already exists, in the other hand QDir.mkdir() returns false if the path already exists. So depending on your program you have to choose which fits better.
You can see more on Qt Documentation