QDir::mkpath() and mkdir() keep failing to create folder
This post is deleted!
Probably you need check out what and where you trying to create the new folder. E.g. with:
qDebug() << "homeLocation " << homeLocation; qDebug() << "location " << location; qDebug() << "pathToPhotosFolder " << pathToPhotosFolder;
Are you on windows?
You are using a backslash which is typically used for windows. In general on any operation you may use with Qt a single forward slash as separator.
My guess your problem is solved with:
QString pathToPhotosFolder = homeLocation+"/photos"
Otherwise you are simply extending the homeLocation's name whatever it is.