Uploaded image for project: 'Qbs ("Cubes")'
  1. Qbs ("Cubes")
  2. QBS-1216

File.move throws an error

    XMLWordPrintable

Details

    • 6534ed02c9878c4fa02dea5cc646e0e7f1696cbd

    Description

      Execute a simple File.move(oldFilePath,newFilePath,true) where both files are in the same directory but it doesn't work at all : The error is throwed from the file src/lib/corelib/jsextensions/file.cpp :

      if (!QFile(sourceFile).isReadable())
      return context->throwError(QString(QLatin1String("Could not
      move '%1' to '%2': ""Source file is not accessible."))
      .arg(sourceFile, targetFile));

      When move replaced to copy, it works.

      Attachments

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

        Activity

          People

            kandeler Christian Kandeler
            misalmel Mika Salmela
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes