~mateo-salta/nitroshare/nitroshare

« back to all changes in this revision

Viewing changes to src/file/CFileSender.cpp

  • Committer: Nathan Osman
  • Date: 2012-07-03 22:45:37 UTC
  • Revision ID: admin@quickmediasolutions.com-20120703224537-ymuk5duhpzg4b63p
Made some more minor tweaks to the code.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
#include <QDebug>
18
18
#include <QDir>
19
 
#include <QFile>
20
19
#include <QMessageBox>
21
20
#include <QVariantList>
22
21
#include <qjson/qobjecthelper.h>
172
171
 
173
172
    foreach(QFileInfo info, directory.entryInfoList(QDir::Dirs | QDir::Files | QDir::NoDotAndDotDot))
174
173
    {
175
 
 
176
 
 
177
174
        if(info.isDir()) PrepareDirectory(info, prefix);
178
175
        else             PrepareFile(info, prefix);
179
176
    }
185
182
    {
186
183
        QFileInfo info(filename);
187
184
 
188
 
        /* Determine if this file really is a file (since it
189
 
           could be a directory instead. Deal with it accordingly. */
 
185
        /* Determine if this "file" is really a file or if it is instead
 
186
           a directory (in which case we need to travers it recursively). */
190
187
        if(info.isDir()) PrepareDirectory(info, "");
191
188
        else             PrepareFile(info, "");
192
189
    }