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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 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)
    • Foundation Sprint 122, Foundation Sprint 123, Foundation Sprint 124, Foundation Sprint 125, Foundation Sprint 126, Foundation Sprint 127

    Description

      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.

      Attachments

        Issue Links

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

          Activity

            People

              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

              Dates

                Created:
                Updated: