Raw log | Switch to full mode | Login

import sys, os path = sys.argv[1] mode = int(sys.argv[2]) if not os.path.isdir(path): if os.path.exists(path): print "%s exists but is not a dir" % path sys.exit(1) os.makedirs(path, mode)