brucerchapman / DnnBulkUserDelete

Service and Console for Deleting large amounts of users from Dnn Installations.
MIT License
12 stars 6 forks source link

Deletion of /Portals/Users fault #6

Open jcsubmit7 opened 7 years ago

jcsubmit7 commented 7 years ago

Thanks for the bulk delete utility. There is a faulty assumption somewhere in deleting the folder hierarchy - I have created my own version from the code to by-pass errors such as the below. I expect there is an assumption that the /Portals/Users hierarchy is not corrupt. If I can pin it down, I will update this. Cheers JC

checking existence of Users/192/64/
GetFolder: Users/192/64/
no children
Parent Folder has no subfolders and was deleted [Users/192/64/] 
checking existence of Users/192/
GetFolder: Users/192/
no children
Exception: folderPath:Users/192/64/9664/
parentFolder.FolderPath: Users/192/
Exception: System.IO.IOException: The directory is not empty. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.Directory.DeleteHelper(String fullPath, String userPath, Boolean recursive, Boolean throwOnTopLevelDirectoryNotFound) at System.IO.Directory.Delete(String fullPath, String userPath, Boolean recursive, Boolean checkHost) at DotNetNuke.Services.FileSystem.Internal.DirectoryWrapper.Delete(String path, Boolean recursive) at DotNetNuke.Services.FileSystem.FolderManager.DeleteFolderInternal(IFolderInfo folder, Boolean isCascadeDeleting) at DotNetNuke.Services.FileSystem.FolderManager.DeleteFolder(IFolderInfo folder) at ASP.JCuserClean.CleanUpParentPath(String folderPath, String& msgString, Boolean& wasExcept)]

==