diff --git a/libraries/script-engine/src/FileScriptingInterface.cpp b/libraries/script-engine/src/FileScriptingInterface.cpp index 3908f2f1c8..63849c238d 100644 --- a/libraries/script-engine/src/FileScriptingInterface.cpp +++ b/libraries/script-engine/src/FileScriptingInterface.cpp @@ -36,7 +36,8 @@ void FileScriptingInterface::runUnzip(QString path, QUrl url) { qDebug() << "Path where download is saved: " + path; QString fileName = "/" + path.section("/", -1); qDebug() << "Filename to remove from temp path: " + fileName; - QString tempDir = path.remove(fileName); + QString tempDir = path; + tempDir.remove(fileName); qDebug() << "Temporary directory at: " + tempDir; QString file = unzipFile(path, tempDir); if (file != "") {