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

Add a variant of QTemporaryFile::rename() that overwrites

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2: Important P2: Important
    • 6.11.0 FF
    • 6.8.1, 6.9.0 Beta1
    • Core: I/O
    • None
    • 2
    • a01b14f1d (dev), 1ec2f5df2 (6.9), 2e98d8d1d (6.8), 776137f29 (tqtc/lts-6.5), 2e91fa640 (tqtc/lts-5.15), c22c344f2 (dev)
    • Foundation Sprint 122, Foundation Sprint 123, Foundation Sprint 124, Foundation Sprint 125, Foundation Sprint 126, Foundation Sprint 127, Foundation Sprint 128, Foundation Sprint 129, Foundation Sprint 130, Foundation Sprint 131, Foundation Sprint 132, Foundation Sprint 133, Foundation Sprint 134, Foundation Sprint 135

      QTemporaryFile::rename() will not overwrite the target, if it exists, making this function rather useless, seeing as it's the only public Qt API I know that guarantees an atomic rename of a file at the OS level (cf. also QTBUG-2082).

      Add a renameOverwrite() function.

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

            mmutz Marc Mutz
            mmutz Marc Mutz
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: