Showing the changes to libraries/script-engine/src/FileScriptingInterface.cpp (1 of 5 files). Show all
Unified · Split
| @@ -35,7 +35,6 @@ void FileScriptingInterface::runUnzip(QString path, QUrl url) { · 34 unmodified lines | ||
| 35 | 35 | qDebug() << "Url that was downloaded: " + url.toString(); |
| 36 | 36 | qDebug() << "Path where download is saved: " + path; |
| 37 | 37 | QString fileName = "/" + path.section("/", -1); |
| 38 | − qDebug() << "Filename to remove from temp path: " + fileName; | |
| 39 | 38 | QString tempDir = path; |
| 40 | 39 | tempDir.remove(fileName); |
| 41 | 40 | qDebug() << "Temporary directory at: " + tempDir; |
| @@ -46,9 +45,8 @@ void FileScriptingInterface::runUnzip(QString path, QUrl url) { · 4 unmodified lines | ||
| 46 | 45 | |
| 47 | 46 | QString file = unzipFile(path, tempDir); |
| 48 | 47 | if (file != "") { |
| 49 | − qDebug() << "file to upload: " + file; | |
| 48 | + qDebug() << "Object file to upload: " + file; | |
| 50 | 49 | QUrl url = QUrl::fromLocalFile(file); |
| 51 | − qDebug() << "url from local file: " + url.toString(); | |
| 52 | 50 | emit unzipSuccess(url.toString()); |
| 53 | 51 | } else { |
| 54 | 52 | qDebug() << "unzip failed"; |
| @@ -73,7 +71,6 @@ bool FileScriptingInterface::isTempDir(QString tempDir) { · 18 unmodified lines | ||
| 73 | 71 | |
| 74 | 72 | bool FileScriptingInterface::isZippedFbx(QUrl url) { |
| 75 | 73 | if (url.toString().contains(".zip") && url.toString().contains("fbx")) return true; |
| 76 | − qDebug() << "This model is not a .fbx packaged in a .zip. Please try with another model."; | |
| 77 | 74 | return false; |
| 78 | 75 | } |
| 79 | 76 | |
| @@ -108,9 +105,7 @@ QString FileScriptingInterface::unzipFile(QString path, QString tempDir) { · 28 unmodified lines | ||
| 108 | 105 | |
| 109 | 106 | QDir dir(path); |
| 110 | 107 | QString dirName = dir.path(); |
| 111 | − qDebug() << "Zip directory is stored at: " + dirName; | |
| 112 | 108 | QString target = tempDir + "/model_repo"; |
| 113 | − qDebug() << "Target path: " + target; | |
| 114 | 109 | QStringList list = JlCompress::extractDir(dirName, target); |
| 115 | 110 | |
| 116 | 111 | qDebug() << list; |