Révision 4b30912e
tools.cpp | ||
---|---|---|
229 | 229 |
|
230 | 230 |
void tools::uploadRecursifPHP(QString destDirBase) |
231 | 231 |
{ |
232 |
qDebug() << "uploadRecursif : " << m_fileListToUploadIndex.count() ; |
|
233 |
emit signalUpload(nbTotalUpload(), nbTotalUpload()-nbResteUpload()+1); |
|
232 |
qDebug() << "uploadRecursifPHP : " << m_fileListToUploadIndex.count() ; |
|
234 | 233 |
m_destDirBase = destDirBase; |
235 | 234 |
m_typeUploadRecursif = "PHP"; |
236 | 235 |
|
237 |
if(m_fileListToUploadIndex.count()>0) {
|
|
236 |
while(m_fileListToUploadIndex.count()>0) {
|
|
238 | 237 |
QString s(m_fileListToUploadIndex.takeFirst()); |
239 |
qDebug() << " -> " << s; |
|
238 |
qDebug() << " -> " << s;
|
|
240 | 239 |
QFileInfo fi(s); |
241 | 240 |
if(fi.isDir()) { |
242 | 241 |
QString ladest = m_destDirBase + fi.absoluteFilePath().remove(m_baseDir.absolutePath()).remove("/www"); |
... | ... | |
247 | 246 |
QString ladest = m_destDirBase + m_fileListToUpload.value(fi.absoluteFilePath()) + "/" + fi.fileName(); |
248 | 247 |
ftpPut(fi.absoluteFilePath(),ladest); |
249 | 248 |
} |
250 |
m_currentFTPFileUpload++; |
|
251 | 249 |
} |
252 | 250 |
} |
253 | 251 |
|
Formats disponibles : Unified diff