[Solar-talk] Re: Solar_Path_Stack: finding absolute paths

Rodrigo Moraes rodrigo.moraes at gmail.com
Fri Oct 26 16:01:52 CDT 2007


On 10/26/07, Rodrigo Moraes wrote:
>     public function findAbsolute($file)
>     {
>         foreach ($this->_stack as $dir) {
>             $spec = Solar_File::exists($dir . $file);
>             if ($spec) {
>                 return $spec;
>             }
>         }
>         return false;
>     }

well, i got what i needed but now looking at it the method has a bad
name. it doesn't look for an absolute path, only returns the absolute
path if found.

it is used in a case where i need to inspect some properties (modified
date, size) of the file name returned by the stack.

-- rodrigo


More information about the Solar-talk mailing list