An auto unit test is added to class Directory in the core library
you can add a QCOMPARE to be sure the folder has been created
I would still remove the folder at the end of the function too
Good for me, you can commit it on the master branch.
I think you can directly Q_COMPARE on the mkpath that returns true if the folder has been created
even QVERIFY seems better to not continue if the folder hasn't been created
Commit Link: https://commits.kde.org/gcompris/fced0df7234fce50979cb261e5b6b61a3fde7b28