Uploaded image for project: 'Qbs ("Cubes")'
  1. Qbs ("Cubes")
  2. QBS-111

Add Directory helper to javascript helpers

    XMLWordPrintable

Details

    • Suggestion
    • Status: Closed
    • P2: Important
    • Resolution: Duplicate
    • some future version
    • None
    • API: JavaScript
    • None

    Description

      Argh. double fail. when i edit .qbs file and then has an error, on next run it get prev. cache, even if it changed. maybe it is bug.

      Suggestion: now we have File and Textfile helper, would nice to have Directory helper which provide some interface to QDir.
      reason: I have a lib with dozens cpp and h files in one dir, which can be accidentaly removed or renamed.
      Wolud nice to write
      files: Directory.scan('/full/path/','.cpp').concat(Directory.scan('/full/path/','.h'))
      or something like.
      Methods that should be at least implemented:
      scan, mkdir, rmdir, copy_recursive - maybe you know some more.

      still need some way to exclude some files,
      e.g. ['*.cpp','*.h'].except('main.cpp').

      Is there a way to do this?

      Attachments

        1. directory.h
          0.5 kB
        2. directory.cpp
          1 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            jbornema Joerg Bornemann
            mapron Smirnov Vladimir
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes