Mambo BTS

This is the bug tracking and feature request tracking system for the Mambo open source CMS project. To add a new task, or comment or vote on an existing task, please register, preferably by using the same username that you use on the forums.

Please do not open tasks for bugs in versions earlier than Mambo 4.6.5.

| Tasklist |

FS#414 - delete media folder even if it is not empty

Attached to Project: Mambo BTS
Opened by damodar bashyal (dbashyal) - Wednesday, 13 August 2008, 03:42 GMT-4
Last edited by Andres Felipe Vargas valencia (andphe) - Thursday, 07 May 2009, 07:33 GMT-4
Task Type Enhancement
Category Backend
Status Researching
Assigned To Andres Felipe Vargas valencia (andphe)
Operating System All
Severity High
Priority Normal
Reported Version 4.6.1
Due in Version 4.7
Due Date Undecided
Percent Complete 50%
Votes 3
Private No

Details

I am new to mambo and i have a request from the client to make it able to delete folders in media manager even if they are not empty, sometimes folders have too many files and takes ages to delete one by one.

If someone can point me to the right direction would be appreciated.

This task depends upon

Comment by Andres Felipe Vargas valencia (andphe) - Saturday, 16 August 2008, 17:59 GMT-4

I'm not sure if everyone would be happy with a behavior like this, I would like to see the Design team discussing about this issue.

in the meantime there is a fix for this, file administrator/components/com_media/admin.media.php, replace the delete_folder function with this one.

function delete_folder($delFolder,$listdir)
{
    global $mosConfig_absolute_path;
 
    $del_folder = $mosConfig_absolute_path.'/images/stories'.$listdir.$delFolder;
 
    $dir = new mosDirectory($del_folder);
    $dir->deleteAll();
 
}

Loading...