comparison transform/FileFeatureWriter.cpp @ 519:21f86744d38e sv-v1.4

...
author Chris Cannam
date Thu, 11 Dec 2008 12:37:16 +0000
parents 3cea770c6632
children 12608139f6bc
comparison
equal deleted inserted replaced
518:3cea770c6632 519:21f86744d38e
168 QString scheme = url.scheme().toLower(); 168 QString scheme = url.scheme().toLower();
169 bool local = (scheme == "" || scheme == "file" || scheme.length() == 1); 169 bool local = (scheme == "" || scheme == "file" || scheme.length() == 1);
170 170
171 QString dirname, basename; 171 QString dirname, basename;
172 QString infilename = url.toLocalFile(); 172 QString infilename = url.toLocalFile();
173 if (scheme.length() == 1) infilename = scheme + ":" + infilename; // DOS drive! 173 if (infilename == "") {
174 if (infilename == "") infilename = url.path(); 174 infilename = url.path();
175 }
175 basename = QFileInfo(infilename).baseName(); 176 basename = QFileInfo(infilename).baseName();
177 if (scheme.length() == 1) {
178 infilename = scheme + ":" + infilename; // DOS drive!
179 }
176 180
177 cerr << "trackId = " << trackId.toStdString() << ", url = " << url.toString().toStdString() << ", infilename = " 181 cerr << "trackId = " << trackId.toStdString() << ", url = " << url.toString().toStdString() << ", infilename = "
178 << infilename.toStdString() << ", basename = " << basename.toStdString() << endl; 182 << infilename.toStdString() << ", basename = " << basename.toStdString() << endl;
179 183
180 184