Hi,
This might help someone, tested on Ubuntu 9.04 -
Qt Code:
{ bool isSuccessful = true; if (directory.exists()) { int count = entries.size(); for (int i = 0; ((i < count) && (isSuccessful == true)); i++) { if (entryInfo.isDir()) { isSuccessful = removeDirectory(innerDirectory); } else { if (!file.remove()) isSuccessful = false; } } if (!directory.rmdir(directory.absolutePath())) isSuccessful = false; } return(isSuccessful); }To copy to clipboard, switch view to plain text mode
Bookmarks