![]() |
FTP delete_dir BUG - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: FTP delete_dir BUG (/showthread.php?tid=44980) |
FTP delete_dir BUG - El Forum - 09-02-2011 [eluser]Glazz[/eluser] Hello, I'm having the same problem, mentioned on this topic http://ellislab.com/forums/viewthread/160581/ Whenever i try to delete a directory my web site starts loading....and loading... and then i get a blank page.... This are the errors i'm getting: Quote:... ... means that are more of the same errors, how to fix this ? Thank you ------- Edit: I went on some testing and the permission denied was for the dir "." and ".." so i edited the code from the Ftp library to this: Code: if ($list !== FALSE AND count($list) > 0) What i added was this: Code: if($item == '.' or $item == '..'): And added the $filepath here: Code: // If we can't delete the item it's probaly a folder so Maybe theres another way, but i'm not bothering looking for it. This way it is deleting recursively all the directories, did not test with files on dirs though, but it should work !?! |