History

removed extraneous debug prints

elisa-lj11 committed 10 years ago

Commit 8bc9a921 parent 4c434e85 files · +3 −15Browse files

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

Unified · Split

libraries/script-engine/src/FileScriptingInterface.cpp+1−6
@@ -35,7 +35,6 @@ void FileScriptingInterface::runUnzip(QString path, QUrl url) { · 34 unmodified lines
35 qDebug() << "Url that was downloaded: " + url.toString();35 qDebug() << "Url that was downloaded: " + url.toString();
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;
39 QString tempDir = path;38 QString tempDir = path;
40 tempDir.remove(fileName);39 tempDir.remove(fileName);
41 qDebug() << "Temporary directory at: " + tempDir;40 qDebug() << "Temporary directory at: " + tempDir;
@@ -46,9 +45,8 @@ void FileScriptingInterface::runUnzip(QString path, QUrl url) { · 4 unmodified lines
46 45
47 QString file = unzipFile(path, tempDir);46 QString file = unzipFile(path, tempDir);
48 if (file != "") {47 if (file != "") {
49 qDebug() << "file to upload: " + file;48 qDebug() << "Object file to upload: " + file;
50 QUrl url = QUrl::fromLocalFile(file);49 QUrl url = QUrl::fromLocalFile(file);
51 qDebug() << "url from local file: " + url.toString();
52 emit unzipSuccess(url.toString());50 emit unzipSuccess(url.toString());
53 } else {51 } else {
54 qDebug() << "unzip failed";52 qDebug() << "unzip failed";
@@ -73,7 +71,6 @@ bool FileScriptingInterface::isTempDir(QString tempDir) { · 18 unmodified lines
73 71
74bool FileScriptingInterface::isZippedFbx(QUrl url) {72bool FileScriptingInterface::isZippedFbx(QUrl url) {
75 if (url.toString().contains(".zip") && url.toString().contains("fbx")) return true;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 return false;74 return false;
78}75}
79 76
@@ -108,9 +105,7 @@ QString FileScriptingInterface::unzipFile(QString path, QString tempDir) { · 28 unmodified lines
108 105
109 QDir dir(path);106 QDir dir(path);
110 QString dirName = dir.path();107 QString dirName = dir.path();
111 qDebug() << "Zip directory is stored at: " + dirName;
112 QString target = tempDir + "/model_repo";108 QString target = tempDir + "/model_repo";
113 qDebug() << "Target path: " + target;
114 QStringList list = JlCompress::extractDir(dirName, target);109 QStringList list = JlCompress::extractDir(dirName, target);
115 110
116 qDebug() << list;111 qDebug() << list;