Re: mod_files.sh patch
| From: | Eddie Drapkin | Date: | Mon, 03 Aug 2009 05:23:27 +0000 |
| Subject: | Re: mod_files.sh patch | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-45186@lists.php.net to get a copy of this message | ||
On Mon, Aug 3, 2009 at 1:20 AM, Eddie Drapkin<oorza2k5@gmail.com> wrote:
> There's a script, mod_files.sh, in ext/session for creating directory
> tree with depth X for sessions. As it stands, it's pretty poorly
> documented and very basic. I got exceptionally bored and rewrote most
> of it, the patch is attached. It runs fine for me in linux (with sh
> version 4.0). I don't have any other *NIX systems to test it out on,
> so I can't verify that it works in anything but linux, sorry.
>
> What I changed:
>
> 1. Usage now properly reflects arguments, and is better explained.
> 2. Will create directory given if it doesn't exist
> 3. Will hop into interactive select if directory already has contents
> 4. Switched from "test" to "[[ ]]" as it's easier to read and _should_
> be just as supported.
>
Not to be a moron, but I attached a bad patch. This is the right one, sorry.
Attachment: [text/x-patch] mod_files.diff
Attachment: [text/x-patch] mod_files.diff