Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Question regarding component.addOperation("Mkdir", path) in QtIFW
Forum Updated to NodeBB v4.3 + New Features

Question regarding component.addOperation("Mkdir", path) in QtIFW

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
qtifw
2 Posts 2 Posters 86 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    LrGenius
    wrote last edited by
    #1

    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

    1 Reply Last reply
    0
    • K Offline
      K Offline
      Katja Marttila
      wrote last edited by
      #2

      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

      1 Reply Last reply
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved