From 565e353eab10a3b4a2f2c474e48ccf72cf3ab856 Mon Sep 17 00:00:00 2001 From: cxl Date: Thu, 2 Mar 2017 14:54:44 +0000 Subject: [PATCH] Core: DeleteFolderDeep now deletes symlinks (thanks mdelfede) git-svn-id: svn://ultimatepp.org/upp/trunk@10893 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/Core/Path.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uppsrc/Core/Path.cpp b/uppsrc/Core/Path.cpp index 9da798a80..a8f6dbdd5 100644 --- a/uppsrc/Core/Path.cpp +++ b/uppsrc/Core/Path.cpp @@ -883,7 +883,7 @@ bool DeleteFolderDeep(const char *dir) while(ff) { String name = ff.GetName(); String p = AppendFileName(dir, name); - if(ff.IsFile()) + if(ff.IsFile() || ff.IsSymLink()) FileDelete(p); else if(ff.IsFolder())