diff options
Diffstat (limited to 'src/webbox.cpp')
-rw-r--r-- | src/webbox.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/webbox.cpp b/src/webbox.cpp index 8f85332..d1e2c50 100644 --- a/src/webbox.cpp +++ b/src/webbox.cpp @@ -377,7 +377,10 @@ int main(int argc, char* argv[]) { QFileInfo fileInfo(path + "/" + filename); if (fileInfo.isDir()) { - response += QString("Note: Moving directory %1 not supported.<br/>").arg(filename); + QDir dir(path); + if (!dir.rename(filename, targetDir + "/" + filename)) { + response += QString("Error moving directory %1<br/>").arg(filename); + } } else if (fileInfo.isFile()) { QFile file(path + "/" + filename); if (!file.rename(path + "/" + targetDir + "/" + filename)) { |