History

Display resource-access events in marketplace item tester

Includes refactoring marketplace item tester into a single-page app.

Kerry Ivan Kurian committed 8 years ago

Commit 3b155481 parent 8e5bc1639 files · +846 −383Browse files

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

Unified · Split

libraries/script-engine/src/FileScriptingInterface.cpp+4−3
@@ -50,7 +50,7 @@ void FileScriptingInterface::runUnzip(QString path, QUrl url, bool autoAdd, bool · 49 unmodified lines
5050 tempDir = zipTemp.path();
5151 path.remove("file:///");
5252 }
53−
53+
5454 qCDebug(scriptengine) << "Temporary directory at: " + tempDir;
5555 if (!isTempDir(tempDir)) {
5656 qCDebug(scriptengine) << "Temporary directory mismatch; risk of losing files";
@@ -58,7 +58,7 @@ void FileScriptingInterface::runUnzip(QString path, QUrl url, bool autoAdd, bool · 1 unmodified line
5858 }
5959
6060 QStringList fileList = unzipFile(path, tempDir);
61−
61+
6262 if (!fileList.isEmpty()) {
6363 qCDebug(scriptengine) << "First file to upload: " + fileList.first();
6464 } else {
@@ -138,7 +138,8 @@ QString FileScriptingInterface::convertUrlToPath(QUrl url) { · 73 unmodified lines
138138 // this function is not in use
139139 void FileScriptingInterface::downloadZip(QString path, const QString link) {
140140 QUrl url = QUrl(link);
141− auto request = DependencyManager::get<ResourceManager>()->createResourceRequest(nullptr, url);
141+ auto request = DependencyManager::get<ResourceManager>()->createResourceRequest(
142+ nullptr, url, true, -1, "FileScriptingInterface::downloadZip");
142143 connect(request, &ResourceRequest::finished, this, [this, path]{
143144 unzipFile(path, ""); // so intellisense isn't mad
144145 });