summaryrefslogtreecommitdiff
path: root/shell/bin/mkdir.php
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2011-11-27 11:29:44 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2011-11-27 11:29:44 -0500
commitde5cb6329b4e6a4c409d1418f16a3488a53ca953 (patch)
tree3a5af4ef0fd42e4f4904326d2cc94d53582e028e /shell/bin/mkdir.php
parent76ead734626996f82caddaca57dc2f84243b0947 (diff)
This is what was deployed on the lnns serverHEADmaster
Diffstat (limited to 'shell/bin/mkdir.php')
-rw-r--r--shell/bin/mkdir.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/shell/bin/mkdir.php b/shell/bin/mkdir.php
new file mode 100644
index 0000000..565f47a
--- /dev/null
+++ b/shell/bin/mkdir.php
@@ -0,0 +1,13 @@
+<?php
+class p_mkdir extends prog {
+ public static function main($args, $env) {
+ $me = array_shift($args);
+ @$recursive = ($args[0]=='-p');
+ if ($recursive) {
+ array_shift($args);
+ }
+ foreach ($args as $dir) {
+ mkdir($dir, umask(), $recursive);
+ }
+ }
+}