Hi,
i'm trying to find an "elegant" solution to delete files from the
filesystem and i was looking inside symfony base code and i discovered
the sfFilesystem class.
This class is used for exmple by the Clear Cache task and i was
wondering if it could be useful for my purpose and  i'm a little
confused with this code(sfFileystem.class.php line 123)
- public function remove($files)
  {
    if (!is_array($files))
    {
      $files = array($files);
    }

    $files = array_reverse($files);


    foreach ($files as $file)
    {
      if (is_dir($file) && !is_link($file))
      {
        $this->logSection('dir-', $file);

        rmdir($file);
      }[...]

why array_reverse is called? I can't understand.

thanks

cirpo

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to