From 5d2fb68924f5dfaf48ffa0571cd8edc59e036d9f Mon Sep 17 00:00:00 2001 From: elisa-lj11 Date: Tue, 16 Aug 2016 15:47:57 -0700 Subject: [PATCH] Fixed temp dir access --- libraries/script-engine/src/FileScriptingInterface.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 != "") {