[PEPr] +1 for Text::PathNavigator

From: Date: Thu, 18 May 2006 19:22:16 +0000
Subject: [PEPr] +1 for Text::PathNavigator
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-42530@lists.php.net to get a copy of this message
Kouber Saparev (http://pear.php.net/user/kouber) has voted +1 on the proposal for Text::PathNavigator. Proposal information: http://pear.php.net/pepr/pepr-proposal-show.php?id=393 Vote information: http://pear.php.net/pepr/pepr-vote-show.php?id=393&handle=kouber This vote is conditional. The condition is: It would be good to have some basic AI over the slashes. For example, in case when there are double slashes: '/home//httpd/foobar' - it has to be treated the same way as '/home/httpd/foobar' and maybe also '/home/httpd/foobar/', although I'm not sure for the latter. Also, beside the ArrayIterator interface, a public $length (count) variable/method would be handy. Otherwise, it might be really cool if you're planning to add in the future some utility functions such as: - converting relative to absolute path and vice versa; - finding the greatest common parent of two paths; - comparing paths; - providing the relative path from one path to another, for example: $p->diff('/home/httpd/foobar', '/home/foo') to give '../../foo'; etc. -- Sent by PEPr, the automatic proposal system at http://pear.php.net

« previous php.pear.dev (#42530) next »