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

QDir::exists returns false on Symbian application's private Directory

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 4.8.0
    • 4.6.3, 4.7.3
    • Core: I/O
    • Nokia E66, Symbian S60 3rd FP1
      Nokia C5-00, Symbian S60 3rd FP2
    • 00bcd42c9ec6cb723fdccb08bb969eef0e5f1f0f

    Description

      According to this thread:
      http://discussion.forum.nokia.com/forum/showthread.php?222931-QDir-exists-returns-false-on-applications-private-directory&p=837116#post837116

      QDir appDir(QApplication::applicationDirPath());
      qDebug() << "App dir:" << QApplication::applicationDirPath();
      qDebug() << "AppDir Exists:" << appDir.exists();
      qDebug() << "mkpath Subdir" << QDir().mkpath(QApplication::applicationDirPath() + "/test");
      qDebug() << "mkdir Subdir:" << appDir.mkdir("test");
      qDebug() << "Subdir Exists:" << QDir(QApplication::applicationDirPath() + "/test").exists();

      generates the following output on an E66:

      [Qt Message] App dir: "C:/Private/e68fb921"
      [Qt Message] AppDir Exists: false
      [Qt Message] mkpath Subdir false
      [Qt Message] mkdir Subdir: true
      [Qt Message] Subdir Exists: true

      there are two issues here, which are connected i guess:
      1. The directory does exist on application startup, though Qt reports it as non-existant. (this is only on the application directory)
      2. The mkpath command does not work, the mkdir command does.

      the E7 behaves "correctly":

      [Qt Message] App dir: "C:/Private/e07ccd81"
      [Qt Message] AppDir Exists: true
      [Qt Message] mkpath Subdir true
      [Qt Message] mkdir Subdir: false
      [Qt Message] Subdir Exists: true

      the uid's are correct. it seems to be a private/public directory issue

      A c5-00 (S60 3rd FP2) has the same issue (returning false on QDir::mkpath and and QDir::exists) on private directory.

      Attachments

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

        Activity

          People

            agocs Laszlo Agocs (Inactive)
            h0ll0 Patrick Jahner
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes