Question regarding component.addOperation("Mkdir", path) in QtIFW
-
Hi *,
I'm using the following code snippet in an QtIFW installscript:
var appDataPath = installer.environmentVariable("APPDATA"); var lrModulesPath = appDataPath + "\\Adobe\\Lightroom\\Modules"; component.addOperation("Mkdir", lrModulesPath);Any ideas why component.addOperation("Mkdir", lrModulesPath) creates a file not a directory?
What am I missing?Platform is Windows.
Thanks.
Regards -
I cannot reproduct that, the installer addOperation simpy calls QDir::root().mkpath(dirName)
https://doc.qt.io/qt-6.9/qdir.html#mkpath
Could you double check that the file with that name did not already exist? Then QDir::mkpath probably is not able to make the folder with the same name