Re: System class/package?
| From: | Andrei Zmievski | Date: | Thu, 02 Aug 2001 13:44:59 +0000 |
| Subject: | Re: System class/package? | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-1243@lists.php.net to get a copy of this message | ||
On Thu, 02 Aug 2001, Stig S. Bakken wrote:
> We need a way to provide portable substitutions for commands like "rm
> -rf", "mkdir -p" and so on. So I'ld like to make a "System"
> class
> providing function for each command.
>
> In general we could take a UNIX command, make a function for it that
> takes two parameters: the regular list of arguments, and a list of
> options. For example:
>
> System::rm($this->tmpdir, "recursive")
What's wrong with System::rm($this->tmpdir, '-r')? :)
-Andrei
* If it ain't broken, it doesn't have enough features yet. *