[SCM] Kaboom - Debian KDE 3->4 migration tool branch, master, updated. a0967ee81a3881b95f6210de51c55f37cfe1c4f2
George Kiagiadakis
gkiagia-guest at alioth.debian.org
Wed Feb 18 12:49:55 UTC 2009
The following commit has been merged in the master branch:
commit 993882ff27bfedd1326a86ca9ebd7c067d57e01f
Author: George Kiagiadakis <gkiagia at users.sourceforge.net>
Date: Wed Feb 18 14:00:23 2009 +0200
This file was accidentally merged. It doesn't belong here...
diff --git a/diroperations/recursiveRmDir_old.cpp b/diroperations/recursiveRmDir_old.cpp
deleted file mode 100644
index 4d34584..0000000
--- a/diroperations/recursiveRmDir_old.cpp
+++ /dev/null
@@ -1,42 +0,0 @@
-/***************************************************************************
- * Copyright (C) 2007 by George Kiagiadakis *
- * gkiagia at users.sourceforge.net *
- * *
- * This program is free software; you can redistribute it and/or modify *
- * it under the terms of the GNU General Public License as published by *
- * the Free Software Foundation; either version 2 of the License, or *
- * (at your option) any later version. *
- * *
- * This program is distributed in the hope that it will be useful, *
- * but WITHOUT ANY WARRANTY; without even the implied warranty of *
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
- * GNU General Public License for more details. *
- * *
- * You should have received a copy of the GNU General Public License *
- * along with this program; if not, write to the *
- * Free Software Foundation, Inc., *
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
- ***************************************************************************/
-#include <QDir>
-#include <QFileInfo>
-
-/*! Deletes directory \a dir and all of its contents. Works like "rm -r". */
-bool recursiveRmDir(QDir dir)
-{
- int i;
- QFileInfoList list = dir.entryInfoList( QDir::AllEntries | QDir::NoDotAndDotDot | QDir::Hidden
- | QDir::System | QDir::CaseSensitive, QDir::DirsLast );
- for (i=0; i < list.count() ; i++)
- {
- if ( list[i].isDir() and not list[i].isSymLink() ) {
- if ( !recursiveRmDir( QDir(list[i].absoluteFilePath()) ) )
- return false;
- } else {
- if ( !dir.remove(list[i].fileName()) )
- return false;
- }
- }
- QString dirname = dir.dirName();
- dir.cdUp();
- return dir.rmdir(dirname);
-}
--
Kaboom - Debian KDE 3->4 migration tool
More information about the pkg-kde-commits
mailing list