Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)
make a dir if not existing

        def svn_mkdir(url): 
    """make a dir if not existing"""
    if not check_command('svn ls %s' % url):
        # creating the folder 
        if not check_command('svn mkdir %s -m "creating folder"' % url):
            raise ReleaseError('could not create the directory %s' % url)
        


src/i/w/iw.releaser-0.4.1/iw/releaser/project.py   iw.releaser(Download)
 
    # creates it if not found
    base.svn_mkdir(releases)
 
    # and the current version

src/i/w/iw.releaser-0.4.1/iw/releaser/packet.py   iw.releaser(Download)
    # checking if tag_root and branch_root exists 
    for branch_ in (tag_root, branch_root):
        base.svn_mkdir(branch_)
 
    # checking if the branch exists, if so, override it