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

On Mac, QFile::rename() returns true even though it does not succeed, when trying to use a destination on a different partition.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 4.5.3
    • 4.5.1
    • Core: I/O
    • None
    • macOS

      The documentation state: "On most file systems, rename() fails only (...) if newName and oldName are not on the same partition". So this behavior is OK, but rename() should not return true, if the requested operation does not actually succeed. Currently it returns true on Mac, even though nothing happens.

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

            roschern Nils Christian Roscher-Nielsen (Inactive)
            roschern Nils Christian Roscher-Nielsen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes