Showing the changes to libraries/script-engine/src/FileScriptingInterface.cpp (1 of 1 file). Show all
Unified · Split
| @@ -36,7 +36,8 @@ void FileScriptingInterface::runUnzip(QString path, QUrl url) { · 35 unmodified lines | |||
| 36 | qDebug() << "Path where download is saved: " + path; | 36 | qDebug() << "Path where download is saved: " + path; |
| 37 | QString fileName = "/" + path.section("/", -1); | 37 | QString fileName = "/" + path.section("/", -1); |
| 38 | qDebug() << "Filename to remove from temp path: " + fileName; | 38 | qDebug() << "Filename to remove from temp path: " + fileName; |
| 39 | QString tempDir = path.remove(fileName); | 39 | QString tempDir = path; |
| 40 | tempDir.remove(fileName); | ||
| 40 | qDebug() << "Temporary directory at: " + tempDir; | 41 | qDebug() << "Temporary directory at: " + tempDir; |
| 41 | QString file = unzipFile(path, tempDir); | 42 | QString file = unzipFile(path, tempDir); |
| 42 | if (file != "") { | 43 | if (file != "") { |