Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-63025

Add support for QDir mkpath when the user has DENIED_PERMISSIONS set on a directory in the middle of the path

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Done
    • Not Evaluated
    • 5.10.0
    • 5.9.1
    • Core: I/O
    • None

    Description

      If a directory is set up so that (for example) a user has their documents path set asĀ 

      \\\\SOMESHARE\\common_root\\user\\documents

      QDir mkpath will fail to create sub directories in the documents folder if the permissions are setup so that the user is denied all permissions on (for example) \\common_root
      , but given modify permissions on their user folder.

      The solution would to try building the path without iterating from the drive root up, as in this example, common_root will be seen as not existing, and it cannot be created. In contrast, the following call would work

      QDir("\\\\SOMESHARE\\common_root\\user\\documents
      ).mkdir("test");

      For now the user can implement this himself but it should be a supported use case for QDir::mkpath.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              thiago Thiago Macieira
              misalmel Mika Salmela
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes