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

QFile: add support for copy() or rename() to overwrite an existing file

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • P3: Somewhat important
    • Some future release
    • None
    • Core: I/O
    • None

    Description

      QFile::copy() does not copy the file if the target file aready exists. However, it would be nice if copy() had a boolean argument to indicate that the target file should be overwritten if it already exists, or if a new function was added to QFile to allow overwriting existing files.

      This would for example make it more convenient to create a QTemporaryFile and copy the contents of an existing file into it.

      Attachments

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

        Activity

          People

            cnn Qt Core & Network
            sthomass Stian Sandvik Thomassen (closed Nokia identity) (Inactive)
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            6 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes