Allow the trash folder itself to be passed to PurgeFolder

0.7.0.2-release
Melanie Thielker 2010-08-06 15:18:48 +02:00 committed by Diva Canto
parent 2892ae6b06
commit 8b7e006ed0
1 changed files with 3 additions and 0 deletions

View File

@ -542,6 +542,9 @@ namespace OpenSim.Services.InventoryService
if (folder.Length < 1) if (folder.Length < 1)
return false; return false;
if (folder[0].type == (int)AssetType.TrashFolder)
return true;
UUID parentFolder = folder[0].parentFolderID; UUID parentFolder = folder[0].parentFolderID;
while (parentFolder != UUID.Zero) while (parentFolder != UUID.Zero)