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

QTemporaryFile::rename does not document that it can only rename, not copy+delete like QFile::rename

    XMLWordPrintable

Details

    • macOS
    • 612f5cf9a1 (qt/qtbase/dev) 612f5cf9a1 (qt/tqtc-qtbase/dev) 185f3c26d4 (qt/qtbase/6.3) 185f3c26d4 (qt/tqtc-qtbase/6.3) 612f5cf9a1 (qt/tqtc-qtbase/6.4) a11c34b202 (qt/tqtc-qtbase/6.2) 351b894171 (qt/tqtc-qtbase/5.15)

    Description

      QTemporaryFile::rename() fails if the destination is on external disk.

      QFile::rename() on the same disk works. 

      I couldn't find it mentioned in the documentation. If this is intended, maybe it is worth making this private so that it is not used accidentally.

      Attachments

        For Gerrit Dashboard: QTBUG-103740
        # Subject Branch Project Status CR V

        Activity

          People

            thiago Thiago Macieira
            badbishop Michal
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes