[Solar-talk] Solar_Path_Stack: finding absolute paths
Rodrigo Moraes
rodrigo.moraes at gmail.com
Fri Oct 26 11:19:32 CDT 2007
Hey,
I need a function in Solar_Path_Stack that returns the *absolute* path
from the found file, instead of the relative path. Basically, this:
public function findAbsolute($file)
{
foreach ($this->_stack as $dir) {
$spec = Solar_File::exists($dir . $file);
if ($spec) {
return $spec;
}
}
return false;
}
If found, it would return the result from the Solar_File::exists(),
instead of the "$dir . $file" returned by find(). Now I'm wondering if
this is possible already and the method above is pointless, or if
wouldn't be worth to have a method for absolute paths there in
Solar_Path_Stack.
-- rodrigo
More information about the Solar-talk
mailing list