• Facebook
  • Twitter
  • Reddit
  • StumbleUpon
  • Digg
  • email

All Samples(11320)  |  Call(11076)  |  Derive(0)  |  Import(244)
mkdir(path [, mode=0777])

Create a directory.

src/j/u/jug-HEAD/examples/text/jugfile.py   jug(Download)
from string import lower
from os.path import exists
import json
from os import mkdir
 
def getdata(title):
    sleep(8)
    text = text.strip()
 
    try:
        mkdir('text-data')
    except:
        pass
    cache = file(cache, 'w')

src/d/i/distribute-0.6.14/pkg_resources.py   distribute(Download)
# capture these to bypass sandboxing
from os import utime
try:
    from os import mkdir, rename, unlink
    WRITE_SUPPORT = True
except ImportError:
    # no write support, probably under GAE
    dirname, filename = split(name)
    if dirname and filename and not isdir(dirname):
        _bypass_ensure_directory(dirname)
        mkdir(dirname, mode)
 
 
 

src/z/a/zamboni-lib-HEAD/lib/python/logilab/common/fileutils.py   zamboni-lib(Download)
import mimetypes
from os.path import isabs, isdir, islink, split, exists, walk, normpath, join
from os.path import abspath
from os import sep, mkdir, remove, listdir, stat, chmod
from stat import ST_MODE, S_IWRITE
from cStringIO import StringIO
 
                    print >> sys.stderr, src, '->', dest
                if isdir(src):
                    if not exists(dest):
                        mkdir(dest)
                else:
                    if exists(dest):
                        remove(dest)
                    shutil.copy2(src, dest)
    try:
        mkdir(to_dir)

src/g/a/gajim-HEAD/setup_osx.py   gajim(Download)
 
from setuptools import setup
import sys, glob, os, commands, types
from os import system, unlink, symlink, getcwd, mkdir, utime
from shutil import move, copy, copytree, rmtree
 
###
	move("dist/Gajim.app/Contents/Frameworks/Python.framework",
		 "dist/Gajim.app/Contents/Python.framework")
	rmtree("dist/Gajim.app/Contents/Frameworks")
	mkdir("dist/Gajim.app/Contents/Frameworks")
	move("dist/Gajim.app/Contents/Python.framework",
		 "dist/Gajim.app/Contents/Frameworks/Python.framework")
	# Adjust the running of the app
def distApp():
	force(lambda:rmtree("dist/Gajim"))
	force(lambda:rmtree("dist/Gajim.tar.bz2"))
	mkdir("dist/Gajim")
	check(system("tar -cf - -C dist Gajim.app | tar -xf - -C dist/Gajim"))
	copy("README.osx", "dist/Gajim/README")
	copy("TODO.osx", "dist/Gajim/TODO")

src/d/0/d-rose-HEAD/rel_0_01_03/unstable/release.py   d-rose(Download)
from os     import access
from os     import chdir
from os     import F_OK
from os     import listdir
from os     import mkdir
from os     import rmdir
from os     import unlink
			if name not in goodFiles:
				print 'Found file', name, "but don't know what to do with it"
 
	mkdir( argv[1] )
	for file in currentFiles:
		copy( file, argv[1] )
	chdir( argv[1] )

src/c/o/codepy-0.91/codepy/jit.py   codepy(Download)
    def __init__(self, cleanup_m, path):
        from os import mkdir
 
        self.path = path
        try:
            mkdir(self.path)
            cleanup_m.register(self)
    def reset(self):
        import os
        _erase_dir(self.path)
        os.mkdir(self.path)
 
    def clean_up(self):
        pass
                "codepy-compiler-cache-v5-uid%s" % os.getuid())
 
        try:
            os.mkdir(cache_dir)
        except OSError, e:
            from errno import EEXIST
            if e.errno != EEXIST:

src/j/u/jug-HEAD/jug/backends/file_store.py   jug(Download)
from __future__ import division
 
import os
from os import path, mkdir, fdopen
from os.path import dirname, exists
import errno
import tempfile
    if path.exists(dname): return
    if head: create_directories(head)
    try:
        mkdir(dname)
    except OSError, e:
        if e.errno != errno.EEXIST:
            raise

src/d/0/d-rose-HEAD/rel_0_02_00/unstable/release.py   d-rose(Download)
#!/usr/bin/python
 
from os     import access
from os     import chdir
from os     import F_OK
from os     import listdir
from os     import mkdir
			if name not in goodFiles:
				print 'Found file', name, "but don't know what to do with it"
 
	mkdir( argv[1] )
	for ffile in currentFiles:
		copy( ffile, argv[1] )
	chdir( argv[1] )

src/j/u/Jug-0.6.99/jug/backends/file_store.py   Jug(Download)
from __future__ import division
 
import os
from os import path, mkdir, fdopen
from os.path import dirname, exists
import errno
import tempfile
    head, tail = path.split(dname)
    if head: create_directories(head)
    try:
        mkdir(dname)
    except OSError, e:
        if e.errno != errno.EEXIST:
            raise
        if head: create_directories(head)
        create_directories(self.tempdir())
        try:
            mkdir(dname)
        except OSError, e:
            if e.errno != errno.EEXIST:
                raise

src/p/i/pisibul-HEAD/trunk/pisibul/pisibul_update.py   pisibul(Download)
# Please read the COPYING file.
#
 
from os import environ, mkdir, path, symlink, remove
from sys import exit
from sha import new
from urllib2 import urlopen,URLError
 
 
if not path.exists(pisibulDir):
    mkdir(pisibulDir)
if not path.exists(dbFile):
    symlink("/usr/share/pisibul/pisibul.db.bz2", dbFile)
sha1sum = new(file(dbFile).read()).hexdigest()

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next