Commit c1596926 authored by Aurindam Jana's avatar Aurindam Jana Committed by Aurindam Jana
Browse files

FileUtils: Remove symbolic links when removing a directory

Task-number: QTCREATORBUG-6898

Change-Id: Idef8eee191d6d5b8f66046a4e6c6891a54262d2e
Reviewed-by: default avatarDaniel Molkentin <>
parent f3bb330e
......@@ -62,7 +62,7 @@ namespace Utils {
bool FileUtils::removeRecursively(const QString &filePath, QString *error)
QFileInfo fileInfo(filePath);
if (!fileInfo.exists())
if (!fileInfo.exists() && !fileInfo.isSymLink())
return true;
QFile::setPermissions(filePath, fileInfo.permissions() | QFile::WriteUser);
if (fileInfo.isDir()) {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment