+++ /dev/null
-#! /usr/bin/env python\r
-\r
-# Like mkdir, but also make intermediate directories if necessary.\r
-# It is not an error if the given directory already exists (as long\r
-# as it is a directory).\r
-# Errors are not treated specially -- you just get a Python exception.\r
-\r
-import sys, os\r
-\r
-def main():\r
- for p in sys.argv[1:]:\r
- makedirs(p)\r
-\r
-def makedirs(p):\r
- if p and not os.path.isdir(p):\r
- head, tail = os.path.split(p)\r
- makedirs(head)\r
- os.mkdir(p, 0777)\r
-\r
-if __name__ == "__main__":\r
- main()\r