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

QFile: creates a temporary file in the user's Temp directory if the destination doesn't exist. The temporary file is not deleted afterwards.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Not Evaluated Not Evaluated
    • 4.6.2
    • 4.6.1
    • Core: I/O
    • None
    • Windows
    • 2d0bd1a13328d5a5ed6c4d1e768937a6627f1086

      A very simple test case to demonstrate the issue:-

      // file "e:/testfile.dat" exists
      // folder "e:/folder/" doesn't exist

      bool success = QFile::copy( "C:/source/testfile.dat", "C:/destination/testfile.dat");

      // temp file "qt_temp.xxxxxx" remains in folder "C:/Documents and Settings/[user]/Local Settings/Temp"

      If the destination directory is absent, a temporary file is created in the users Temp directory. On Windows 7 this is Users\<username>\AppData\Local\Temp

      other version of Windows, the temp directory is located in <user name>\Documents and Settings\Temp

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

            biochimia João Abecasis
            cattell Matthew Cattell (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes