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:
- Usage now properly reflects arguments, and is better explained.
- Will create directory given if it doesn't exist
- Will hop into interactive select if directory already has contents
- Switched from "test" to "[[ ]]" as it's easier to read and should
be just as supported.
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:
- Usage now properly reflects arguments, and is better explained.
- Will create directory given if it doesn't exist
- Will hop into interactive select if directory already has contents
- 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.
Hi,
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.
Can you open a bug report at http://bugs.php.net and refer to the patch
there so it won't be lost? - Thanks!
johannes
2009/8/5 Johannes Schlüter johannes@schlueters.de:
Hi,
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.Can you open a bug report at http://bugs.php.net and refer to the patch
there so it won't be lost? - Thanks!johannes
Alright, here you go!
http://bugs.php.net/bug.php?id=49175&
:)