History

Fixed temp dir access

elisa-lj11 committed 10 years ago

Commit 5d2fb681 parent 9ea9bae1 file · +2 −1Browse files

Showing the changes to libraries/script-engine/src/FileScriptingInterface.cpp (1 of 1 file). Show all

Unified · Split

libraries/script-engine/src/FileScriptingInterface.cpp+2−1
@@ -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 != "") {